diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:04:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-16 16:04:10 +0000 |
commit | 74a628f776edb588bff8f8f5cc16eac947c9d631 (patch) | |
tree | dc32e010ac4902621e5a279bfeb48628f7f0e166 /source/Symbol/Function.cpp | |
parent | afed7be32164a598f8172282c249af7266c48b46 (diff) |
Notes
Diffstat (limited to 'source/Symbol/Function.cpp')
-rw-r--r-- | source/Symbol/Function.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/Symbol/Function.cpp b/source/Symbol/Function.cpp index 8fde0a423883d..9464cef0bc733 100644 --- a/source/Symbol/Function.cpp +++ b/source/Symbol/Function.cpp @@ -228,12 +228,15 @@ const CompileUnit *Function::GetCompileUnit() const { return m_comp_unit; } void Function::GetDescription(Stream *s, lldb::DescriptionLevel level, Target *target) { - Type *func_type = GetType(); - const char *name = func_type ? func_type->GetName().AsCString() : "<unknown>"; - - *s << "id = " << (const UserID &)*this << ", name = \"" << name - << "\", range = "; - + ConstString name = GetName(); + ConstString mangled = m_mangled.GetMangledName(); + + *s << "id = " << (const UserID &)*this; + if (name) + *s << ", name = \"" << name.GetCString() << '"'; + if (mangled) + *s << ", mangled = \"" << mangled.GetCString() << '"'; + *s << ", range = "; Address::DumpStyle fallback_style; if (level == eDescriptionLevelVerbose) fallback_style = Address::DumpStyleModuleWithFileAddress; |