[Lldb-commits] [lldb] Improve type and namespace lookup using parent chain (PR #108907)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 19 13:00:07 PDT 2024
================
@@ -126,3 +126,62 @@ bool DWARFIndex::GetFullyQualifiedTypeImpl(
return callback(die);
return true;
}
+
+void DWARFIndex::GetNamespacesWithParents(
+ ConstString name, llvm::ArrayRef<llvm::StringRef> parent_names,
----------------
clayborg wrote:
Instead of just an array of names, we should try to use the `llvm::ArrayRef<CompilerContext>`. The .debug_names table has the DW_TAG in each entry and we can further reduce the number of things and possibly not even need to check the name if the DW_TAG_ doesn't match of the CompilerContext type isn't set to Any.
https://github.com/llvm/llvm-project/pull/108907
More information about the lldb-commits
mailing list