[Lldb-commits] [lldb] Improve type and namespace lookup using parent chain (PR #108907)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 19 07:58:52 PDT 2024
================
@@ -402,6 +420,36 @@ bool DebugNamesDWARFIndex::SameParentChain(
return true;
}
+bool DebugNamesDWARFIndex::WithinParentChain(
+ llvm::ArrayRef<llvm::StringRef> query_parent_names,
+ llvm::ArrayRef<DebugNames::Entry> parent_chain) const {
+ if (parent_chain.size() < query_parent_names.size())
----------------
felipepiovezan wrote:
this check and the one at the end of the loop can be combined into a single check at the start of the loop
https://github.com/llvm/llvm-project/pull/108907
More information about the lldb-commits
mailing list