diff options
| author | Adrian Prantl <aprantl@apple.com> | 2019-10-09 16:22:14 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2019-10-09 16:22:14 +0000 |
| commit | 939411c1aaa8830de2273849d5b8417788a25f67 (patch) | |
| tree | 4f2f34e5fd46e9e01298286eae4897b53656c501 /lldb/source/API | |
| parent | 6453f700f29a93ceb17ac43d6e8b802f9898fa6a (diff) | |
| download | bcm5719-llvm-939411c1aaa8830de2273849d5b8417788a25f67.tar.gz bcm5719-llvm-939411c1aaa8830de2273849d5b8417788a25f67.zip | |
Remove the is_mangled flag from Mangled and Symbol
Testing whether a name is mangled or not is extremely cheap and can be
done by looking at the first two characters. Mangled knows how to do
it. On the flip side, many call sites that currently pass in an
is_mangled determination do not know how to correctly do it (for
example, they leave out Swift mangling prefixes).
This patch removes this entry point and just forced Mangled to
determine the mangledness of a string itself.
Differential Revision: https://reviews.llvm.org/D68674
llvm-svn: 374180
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/SBType.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBType.cpp b/lldb/source/API/SBType.cpp index 5402128b3fa..8efc701a79f 100644 --- a/lldb/source/API/SBType.cpp +++ b/lldb/source/API/SBType.cpp @@ -799,7 +799,7 @@ const char *SBTypeMemberFunction::GetDemangledName() { if (m_opaque_sp) { ConstString mangled_str = m_opaque_sp->GetMangledName(); if (mangled_str) { - Mangled mangled(mangled_str, true); + Mangled mangled(mangled_str); return mangled.GetDemangledName(mangled.GuessLanguage()).GetCString(); } } |

