[Lldb-commits] [PATCH] D68678: Speed up accelerator table lookups

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 16:22:02 PDT 2019


aprantl updated this revision to Diff 224197.
aprantl added a comment.

Added a `if (!has_qualified_name_hash)`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68678/new/

https://reviews.llvm.org/D68678

Files:
  lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp


Index: lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
+++ lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
@@ -117,8 +117,9 @@
   // searching for the parent type ("vector<int>") first we can avoid
   // extracting type DIEs from object files that would fail the filter
   // anyway.
-  if (context.GetSize() > 1 && (context[1].tag == DW_TAG_class_type ||
-                                context[1].tag == DW_TAG_structure_type)) {
+  if (!has_qualified_name_hash && (context.GetSize() > 1) &&
+      (context[1].tag == DW_TAG_class_type ||
+       context[1].tag == DW_TAG_structure_type)) {
     DIEArray class_matches;
     m_apple_types_up->FindByName(context[1].name, class_matches);
     if (class_matches.empty())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68678.224197.patch
Type: text/x-patch
Size: 869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191009/74f2351d/attachment.bin>


More information about the lldb-commits mailing list