diff options
| author | Enrico Granata <egranata@apple.com> | 2015-07-06 18:28:46 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-07-06 18:28:46 +0000 |
| commit | c1f705c2298d64edd5d54ca59816332cce34869b (patch) | |
| tree | 20efb79aae596fcc8f988114ee9d861a50c78477 /lldb/source/Symbol/Function.cpp | |
| parent | 95dd08e4c928d17464e9974ed98493f9ab87f257 (diff) | |
| download | bcm5719-llvm-c1f705c2298d64edd5d54ca59816332cce34869b.tar.gz bcm5719-llvm-c1f705c2298d64edd5d54ca59816332cce34869b.zip | |
Add a GetDisplayName() API to SBFrame, SBFunction and SBSymbol
This API is currently a no-op (in the sense that it has the same behavior as the already existing GetName()), but is meant long-term to provide a best-for-visualization version of the name of a function
It is still not hooked up to the command line 'bt' command, nor to the 'gui' mode, but I do have ideas on how to make that work going forward
rdar://21203242
llvm-svn: 241482
Diffstat (limited to 'lldb/source/Symbol/Function.cpp')
| -rw-r--r-- | lldb/source/Symbol/Function.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp index 0b7430ad75e..61b48eda862 100644 --- a/lldb/source/Symbol/Function.cpp +++ b/lldb/source/Symbol/Function.cpp @@ -159,6 +159,13 @@ InlineFunctionInfo::GetName () const return m_name; } +ConstString +InlineFunctionInfo::GetDisplayName () const +{ + if (m_mangled) + return m_mangled.GetDisplayDemangledName(); + return m_name; +} Declaration & InlineFunctionInfo::GetCallSite () @@ -459,6 +466,14 @@ Function::MemorySize () const return mem_size; } +ConstString +Function::GetDisplayName () const +{ + if (!m_mangled) + return ConstString(); + return m_mangled.GetDisplayDemangledName(); +} + clang::DeclContext * Function::GetClangDeclContext() { |

