diff options
| author | Fangrui Song <maskray@google.com> | 2019-03-27 08:43:21 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-03-27 08:43:21 +0000 |
| commit | 38a4c619eb80ed46425c5b0358f015514971f3da (patch) | |
| tree | b2bdbf467db0163c7bc82548cda5dcf391f84637 /llvm/lib | |
| parent | 38342a5185a1604e3ab7eb407ac910a0932cc91c (diff) | |
| download | bcm5719-llvm-38a4c619eb80ed46425c5b0358f015514971f3da.tar.gz bcm5719-llvm-38a4c619eb80ed46425c5b0358f015514971f3da.zip | |
[DWARF] Simplify DWARFVerifier::handleDebugAbbrev. NFC
llvm-svn: 357053
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp index 2ad33a3e143..dce622d8066 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -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; } |

