[nfc] [lldb] DWARFDebugInfoEntry::Extract(): reindent

This commit is contained in:
Jan Kratochvil 2021-03-02 16:44:07 +01:00
parent 61c29321b3
commit 1b8fdaacf4
1 changed files with 148 additions and 150 deletions

View File

@ -49,7 +49,12 @@ bool DWARFDebugInfoEntry::Extract(const DWARFDataExtractor &data,
// assert (fixed_form_sizes); // For best performance this should be
// specified!
if (m_abbr_idx) {
if (m_abbr_idx == 0) {
m_tag = llvm::dwarf::DW_TAG_null;
m_has_children = false;
return true; // NULL debug tag entry
}
lldb::offset_t offset = *offset_ptr;
const auto *abbrevDecl = GetAbbreviationDeclarationPtr(cu);
if (abbrevDecl == nullptr) {
@ -197,13 +202,6 @@ bool DWARFDebugInfoEntry::Extract(const DWARFDataExtractor &data,
}
*offset_ptr = offset;
return true;
} else {
m_tag = llvm::dwarf::DW_TAG_null;
m_has_children = false;
return true; // NULL debug tag entry
}
return false;
}
static DWARFRangeList GetRangesOrReportError(DWARFUnit &unit,