[Lldb-commits] [lldb] Improve debug names index fetching global variables performance (PR #70231)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 25 10:35:16 PDT 2023


================
@@ -130,6 +130,17 @@ void DebugNamesDWARFIndex::GetGlobalVariables(
   uint64_t cu_offset = cu.GetOffset();
   bool found_entry_for_cu = false;
   for (const DebugNames::NameIndex &ni: *m_debug_names_up) {
+    // Check if this name index contains an entry for the given CU.
+    bool has_match_cu = false;
----------------
clayborg wrote:

I would rename this maybe to "cu_matches".

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


More information about the lldb-commits mailing list