[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:05 PDT 2024


================
@@ -2762,7 +2762,7 @@ void SymbolFileDWARF::FindTypes(const TypeQuery &query, TypeResults &results) {
     if (query.GetModuleSearch())
       die_context = die.GetDeclContext();
     else
-      die_context = die.GetTypeLookupContext();
+      die_context = die.GetTypeLookupContext(query.GetSearchByMangledName());
----------------
Michael137 wrote:

To avoid mixing mangled typenames into the `CompilerDeclContext` logic, we could just compare mangled names here if `GetSearchByMangledName()`, instead of decl context?

https://github.com/llvm/llvm-project/pull/113007


More information about the lldb-commits mailing list