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:
Francis Ricci 2016-10-06 20:41:11 +00:00
parent 0e79f7d11d
commit 51019244ab
2 changed files with 0 additions and 4 deletions

View File

@ -347,8 +347,6 @@ bool Function::IsTopLevelFunction() {
}
ConstString Function::GetDisplayName() const {
if (!m_mangled)
return ConstString();
return m_mangled.GetDisplayDemangledName(GetLanguage());
}

View File

@ -117,8 +117,6 @@ bool Symbol::ValueIsAddress() const {
}
ConstString Symbol::GetDisplayName() const {
if (!m_mangled)
return ConstString();
return m_mangled.GetDisplayDemangledName(GetLanguage());
}