[Lldb-commits] [PATCH] D154610: [lldb][NFC] Remove unused parameter from DebugNames::ProcessEntry
Felipe de Azevedo Piovezan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 6 07:36:29 PDT 2023
fdeazeve created this revision.
Herald added a subscriber: arphaman.
Herald added a project: All.
fdeazeve requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154610
Files:
lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
Index: lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
+++ lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
@@ -80,8 +80,7 @@
std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry);
bool ProcessEntry(const DebugNames::Entry &entry,
- llvm::function_ref<bool(DWARFDIE die)> callback,
- llvm::StringRef name);
+ llvm::function_ref<bool(DWARFDIE die)> callback);
static void MaybeLogLookupError(llvm::Error error,
const DebugNames::NameIndex &ni,
Index: lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
+++ lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
@@ -62,7 +62,7 @@
bool DebugNamesDWARFIndex::ProcessEntry(
const DebugNames::Entry &entry,
- llvm::function_ref<bool(DWARFDIE die)> callback, llvm::StringRef name) {
+ llvm::function_ref<bool(DWARFDIE die)> callback) {
std::optional<DIERef> ref = ToDIERef(entry);
if (!ref)
return true;
@@ -92,7 +92,7 @@
if (entry.tag() != DW_TAG_variable)
continue;
- if (!ProcessEntry(entry, callback, basename.GetStringRef()))
+ if (!ProcessEntry(entry, callback))
return;
}
@@ -113,8 +113,7 @@
if (entry_or->tag() != DW_TAG_variable)
continue;
- if (!ProcessEntry(*entry_or, callback,
- llvm::StringRef(nte.getString())))
+ if (!ProcessEntry(*entry_or, callback))
return;
}
MaybeLogLookupError(entry_or.takeError(), ni, nte.getString());
@@ -139,8 +138,7 @@
continue;
found_entry_for_cu = true;
- if (!ProcessEntry(*entry_or, callback,
- llvm::StringRef(nte.getString())))
+ if (!ProcessEntry(*entry_or, callback))
return;
}
MaybeLogLookupError(entry_or.takeError(), ni, nte.getString());
@@ -202,7 +200,7 @@
for (const DebugNames::Entry &entry :
m_debug_names_up->equal_range(name.GetStringRef())) {
if (isType(entry.tag())) {
- if (!ProcessEntry(entry, callback, name.GetStringRef()))
+ if (!ProcessEntry(entry, callback))
return;
}
}
@@ -216,7 +214,7 @@
auto name = context[0].name;
for (const DebugNames::Entry &entry : m_debug_names_up->equal_range(name)) {
if (entry.tag() == context[0].tag) {
- if (!ProcessEntry(entry, callback, name))
+ if (!ProcessEntry(entry, callback))
return;
}
}
@@ -229,7 +227,7 @@
for (const DebugNames::Entry &entry :
m_debug_names_up->equal_range(name.GetStringRef())) {
if (entry.tag() == DW_TAG_namespace) {
- if (!ProcessEntry(entry, callback, name.GetStringRef()))
+ if (!ProcessEntry(entry, callback))
return;
}
}
@@ -278,8 +276,7 @@
if (tag != DW_TAG_subprogram && tag != DW_TAG_inlined_subroutine)
continue;
- if (!ProcessEntry(*entry_or, callback,
- llvm::StringRef(nte.getString())))
+ if (!ProcessEntry(*entry_or, callback))
return;
}
MaybeLogLookupError(entry_or.takeError(), ni, nte.getString());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154610.537720.patch
Type: text/x-patch
Size: 3452 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230706/67b48877/attachment.bin>
More information about the lldb-commits
mailing list