[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,
+ llvm::function_ref<bool(DWARFDIE die)> callback) {
+ GetNamespaces(name, [&](DWARFDIE die) {
+ return ProcessDieMatchParentNames(name, parent_names, die, callback);
+ });
+}
+
+void DWARFIndex::GetTypesWithParents(
+ ConstString name, llvm::ArrayRef<llvm::StringRef> parent_names,
+ llvm::function_ref<bool(DWARFDIE die)> callback) {
+ GetTypes(name, [&](DWARFDIE die) {
+ return ProcessDieMatchParentNames(name, parent_names, die, callback);
+ });
+}
+
+bool DWARFIndex::ProcessDieMatchParentNames(
+ ConstString name, llvm::ArrayRef<llvm::StringRef> query_parent_names,
----------------
clayborg wrote:
Same here, replace `llvm::ArrayRef<llvm::StringRef>` parent_names with `llvm::ArrayRef<CompilerContext>`
https://github.com/llvm/llvm-project/pull/108907
More information about the lldb-commits
mailing list