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;
if (entry.tag() != DW_TAG_variable)
continue;
- if (!ProcessEntry(entry, callback, basename.GetStringRef()))
+ if (!ProcessEntry(entry, callback))
return;
}
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());
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());
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;
}
}
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;
}
}
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;
}
}
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());