Skip to content

Commit 048204d

Browse files
committed
[lldb] Remove lldbassert from DebugNamesDWARFIndex::GetGlobalVariables
34a8e6e changed SymbolFileDWARF::GetDwoNum to SymbolFileDWARF::GetFileIndex but changed the meaning from just DWO to DWO and OSO which changed the meaning of the assert. The assert was therefore removed from ManualDWARFIndex::GetGlobalVariables and ManualDWARFIndex::GetGlobalVariables but was still present in DebugNamesDWARFIndex::GetGlobalVariables. If we want to reintroduce the assert, we need something with the old semantics for all 3.
1 parent e63e536 commit 048204d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ void DebugNamesDWARFIndex::GetGlobalVariables(
126126

127127
void DebugNamesDWARFIndex::GetGlobalVariables(
128128
DWARFUnit &cu, llvm::function_ref<bool(DWARFDIE die)> callback) {
129-
lldbassert(!cu.GetSymbolFileDWARF().GetFileIndex());
130129
uint64_t cu_offset = cu.GetOffset();
131130
bool found_entry_for_cu = false;
132131
for (const DebugNames::NameIndex &ni: *m_debug_names_up) {

0 commit comments

Comments
 (0)