summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Symbol/Function.cpp')
-rw-r--r--lldb/source/Symbol/Function.cpp15
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()
{
OpenPOWER on IntegriCloud