[Lldb-commits] [lldb] [lldb] Extend FindTypes to optionally search by mangled type name (PR #113007)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 19 02:32:06 PDT 2024
================
@@ -434,6 +442,19 @@ static void GetTypeLookupContextImpl(DWARFDIE die,
auto push_ctx = [&](CompilerContextKind kind, llvm::StringRef name) {
context.push_back({kind, ConstString(name)});
};
+
+ // Since mangled names are unique there's no need to build an entire context.
+ if (use_mangled_name) {
+ push_ctx(CompilerContextKind::AnyType, die.GetMangledName());
+ return;
+ }
+
+ // If there is no name, then there is no need to look anything up for this
+ // DIE.
+ const char *name = die.GetName();
----------------
Michael137 wrote:
why is this required now, whereas it wasn't before?
https://github.com/llvm/llvm-project/pull/113007
More information about the lldb-commits
mailing list