mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[DWARF] Simplify DWARFVerifier::handleDebugAbbrev. NFC
llvm-svn: 357053
This commit is contained in:
parent
3fb04e5ab0
commit
9b9ffbc901
@ -280,19 +280,12 @@ bool DWARFVerifier::handleDebugAbbrev() {
|
||||
OS << "Verifying .debug_abbrev...\n";
|
||||
|
||||
const DWARFObject &DObj = DCtx.getDWARFObj();
|
||||
bool noDebugAbbrev = DObj.getAbbrevSection().empty();
|
||||
bool noDebugAbbrevDWO = DObj.getAbbrevDWOSection().empty();
|
||||
|
||||
if (noDebugAbbrev && noDebugAbbrevDWO) {
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned NumErrors = 0;
|
||||
if (!noDebugAbbrev)
|
||||
if (!DObj.getAbbrevSection().empty())
|
||||
NumErrors += verifyAbbrevSection(DCtx.getDebugAbbrev());
|
||||
|
||||
if (!noDebugAbbrevDWO)
|
||||
if (!DObj.getAbbrevDWOSection().empty())
|
||||
NumErrors += verifyAbbrevSection(DCtx.getDebugAbbrevDWO());
|
||||
|
||||
return NumErrors == 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user