[Lldb-commits] [lldb] Improve namespace lookup using .debug_names parent chain (PR #110062)

via lldb-commits lldb-commits at lists.llvm.org
Sun Oct 13 19:24:11 PDT 2024


================
@@ -151,3 +151,19 @@ bool DWARFIndex::ProcessTypeDIEMatchQuery(
     return true;
   return callback(die);
 }
+
+void DWARFIndex::GetNamespacesWithParents(
+    ConstString name, const CompilerDeclContext &parent_decl_ctx,
+    llvm::function_ref<bool(DWARFDIE die)> callback) {
+  GetNamespaces(name, [&](DWARFDIE die) {
+    return ProcessNamespaceDieMatchParents(parent_decl_ctx, die, callback);
----------------
jeffreytan81 wrote:

Yes

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


More information about the lldb-commits mailing list