forked from OSchip/llvm-project
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
This commit is contained in:
parent
0e79f7d11d
commit
51019244ab
|
@ -347,8 +347,6 @@ bool Function::IsTopLevelFunction() {
|
|||
}
|
||||
|
||||
ConstString Function::GetDisplayName() const {
|
||||
if (!m_mangled)
|
||||
return ConstString();
|
||||
return m_mangled.GetDisplayDemangledName(GetLanguage());
|
||||
}
|
||||
|
||||
|
|
|
@ -117,8 +117,6 @@ bool Symbol::ValueIsAddress() const {
|
|||
}
|
||||
|
||||
ConstString Symbol::GetDisplayName() const {
|
||||
if (!m_mangled)
|
||||
return ConstString();
|
||||
return m_mangled.GetDisplayDemangledName(GetLanguage());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue