summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/Function.cpp
diff options
context:
space:
mode:
authorFrancis Ricci <francisjricci@gmail.com>2016-10-06 20:41:11 +0000
committerFrancis Ricci <francisjricci@gmail.com>2016-10-06 20:41:11 +0000
commit51019244abe20e51f4185c8d1e9f4b03e2ecde99 (patch)
tree6fdc40ae409ba67d508002f93bc4d79cfb112e70 /lldb/source/Symbol/Function.cpp
parent0e79f7d11d6a76c8509554bde344d0270fea814d (diff)
downloadbcm5719-llvm-51019244abe20e51f4185c8d1e9f4b03e2ecde99.tar.gz
bcm5719-llvm-51019244abe20e51f4185c8d1e9f4b03e2ecde99.zip
Fix GetDisplayName when only a demangled name is available
Summary: GetDisplayDemangledName will already return a ConstString() when there is neither a mangled name or a demangled name, so we don't need to special case here. This will fix GetDisplayName in cases where m_mangled contains only a demangled name and not a mangled name. Reviewers: clayborg, granata.enrico, sas Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D25201 llvm-svn: 283491
Diffstat (limited to 'lldb/source/Symbol/Function.cpp')
-rw-r--r--lldb/source/Symbol/Function.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Symbol/Function.cpp b/lldb/source/Symbol/Function.cpp
index 96346167053..8fde0a42388 100644
--- a/lldb/source/Symbol/Function.cpp
+++ b/lldb/source/Symbol/Function.cpp
@@ -347,8 +347,6 @@ bool Function::IsTopLevelFunction() {
}
ConstString Function::GetDisplayName() const {
- if (!m_mangled)
- return ConstString();
return m_mangled.GetDisplayDemangledName(GetLanguage());
}
OpenPOWER on IntegriCloud