forked from OSchip/llvm-project
[lldb/DWARF] Remove a workaround from DebugNamesDWARFIndex
This was needed when asking a compile unit for its dwo component triggered a infinite recursion if the dwo unit has not been already parsed. This has since been fixed.
This commit is contained in:
parent
77cedb0cdb
commit
d4b092b341
|
@ -53,12 +53,7 @@ DebugNamesDWARFIndex::ToDIERef(const DebugNames::Entry &entry) {
|
|||
if (!cu)
|
||||
return llvm::None;
|
||||
|
||||
// This initializes the DWO symbol file. It's not possible for
|
||||
// GetDwoSymbolFile to call this automatically because of mutual recursion
|
||||
// between this and DWARFDebugInfoEntry::GetAttributeValue.
|
||||
cu->ExtractUnitDIEIfNeeded();
|
||||
cu = &cu->GetNonSkeletonUnit();
|
||||
|
||||
if (llvm::Optional<uint64_t> die_offset = entry.getDIEUnitOffset())
|
||||
return DIERef(cu->GetSymbolFileDWARF().GetDwoNum(),
|
||||
DIERef::Section::DebugInfo, cu->GetOffset() + *die_offset);
|
||||
|
|
Loading…
Reference in New Issue