From 5e95aa85bb660d45e9905ef1d7180b2678280660 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Fri, 3 Jul 2015 16:57:06 +0000 Subject: Import LLDB as of upstream SVN 241361 (git 612c075f) --- source/Symbol/Variable.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source/Symbol/Variable.cpp') diff --git a/source/Symbol/Variable.cpp b/source/Symbol/Variable.cpp index 4c03a307296d..5665e4702ca6 100644 --- a/source/Symbol/Variable.cpp +++ b/source/Symbol/Variable.cpp @@ -36,7 +36,7 @@ Variable::Variable ( lldb::user_id_t uid, const char *name, - const char *mangled, // The mangled variable name for variables in namespaces + const char *mangled, // The mangled or fully qualified name of the variable. const lldb::SymbolFileTypeSP &symfile_type_sp, ValueType scope, SymbolContextScope *context, @@ -47,7 +47,7 @@ Variable::Variable ) : UserID(uid), m_name(name), - m_mangled (ConstString(mangled), true), + m_mangled (ConstString(mangled)), m_symfile_type_sp(symfile_type_sp), m_scope(scope), m_owner_scope(context), @@ -69,8 +69,9 @@ Variable::~Variable() const ConstString& Variable::GetName() const { - if (m_mangled) - return m_mangled.GetName(); + const ConstString &name = m_mangled.GetName(); + if (name) + return name; return m_name; } @@ -175,6 +176,7 @@ Variable::DumpDeclaration (Stream *s, bool show_fullpaths, bool show_module) sc.line_entry.Clear(); bool show_inlined_frames = false; const bool show_function_arguments = true; + const bool show_function_name = true; dumped_declaration_info = sc.DumpStopContext (s, nullptr, @@ -182,7 +184,8 @@ Variable::DumpDeclaration (Stream *s, bool show_fullpaths, bool show_module) show_fullpaths, show_module, show_inlined_frames, - show_function_arguments); + show_function_arguments, + show_function_name); if (sc.function) s->PutChar(':'); -- cgit v1.3