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/Expression | |
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/Expression')
-rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index cbcea13396b..bf5f1a6acc6 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -669,7 +669,7 @@ FindBestAlternateMangledName(ConstString demangled, std::vector<ConstString> param_matches; for (size_t i = 0; i < alternates.size(); i++) { ConstString alternate_mangled_name = alternates[i]; - Mangled mangled(alternate_mangled_name, true); + Mangled mangled(alternate_mangled_name); ConstString demangled = mangled.GetDemangledName(lang_type); CPlusPlusLanguage::MethodName alternate_cpp_name(demangled); @@ -717,7 +717,7 @@ void IRExecutionUnit::CollectCandidateCPlusPlusNames( ConstString name = C_spec.name; if (CPlusPlusLanguage::IsCPPMangledName(name.GetCString())) { - Mangled mangled(name, true); + Mangled mangled(name); ConstString demangled = mangled.GetDemangledName(lldb::eLanguageTypeC_plus_plus); |