mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
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:
@@ -347,8 +347,6 @@ bool Function::IsTopLevelFunction() {
|
||||
}
|
||||
|
||||
ConstString Function::GetDisplayName() const {
|
||||
if (!m_mangled)
|
||||
return ConstString();
|
||||
return m_mangled.GetDisplayDemangledName(GetLanguage());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user