Skip to content

Commit 3b2bec4

Browse files
committedJan 29, 2016
Fix TestDataFormatterScript for Linux.
Summary: m_function_name will contain a dummy name for the auto-generated function from the python script on Linux. Check for script name first. Reviewers: granata.enrico Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D16703 llvm-svn: 259153
1 parent e61f8e3 commit 3b2bec4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎lldb/source/DataFormatters/TypeSummary.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -263,21 +263,20 @@ ScriptSummaryFormat::GetDescription ()
263263
SkipsPointers() ? " (skip pointers)" : "",
264264
SkipsReferences() ? " (skip references)" : "",
265265
HideNames(nullptr) ? " (hide member names)" : "");
266-
if (m_function_name.empty())
266+
if (m_python_script.empty())
267267
{
268-
if (m_python_script.empty())
268+
if (m_function_name.empty())
269269
{
270270
sstr.PutCString("no backing script");
271271
}
272272
else
273273
{
274-
sstr.PutCString(m_python_script.c_str());
274+
sstr.PutCString(m_function_name.c_str());
275275
}
276276
}
277277
else
278278
{
279-
sstr.PutCString(m_function_name.c_str());
279+
sstr.PutCString(m_python_script.c_str());
280280
}
281281
return sstr.GetString();
282-
283282
}

0 commit comments

Comments
 (0)
Please sign in to comment.