[llvm] r309240 - [DWARF] Minor code style modification, no functionality change.
Spyridoula Gravani via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 17:59:33 PDT 2017
Author: sgravani
Date: Wed Jul 26 17:59:33 2017
New Revision: 309240
URL: http://llvm.org/viewvc/llvm-project?rev=309240&view=rev
Log:
[DWARF] Minor code style modification, no functionality change.
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=309240&r1=309239&r2=309240&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Wed Jul 26 17:59:33 2017
@@ -418,15 +418,12 @@ DWARFDie DWARFContext::getDIEForOffset(u
bool DWARFContext::verify(raw_ostream &OS, DIDumpType DumpType) {
bool Success = true;
DWARFVerifier verifier(OS, *this);
+
Success &= verifier.handleDebugAbbrev();
- if (DumpType == DIDT_All || DumpType == DIDT_Info) {
- if (!verifier.handleDebugInfo())
- Success = false;
- }
- if (DumpType == DIDT_All || DumpType == DIDT_Line) {
- if (!verifier.handleDebugLine())
- Success = false;
- }
+ if (DumpType == DIDT_All || DumpType == DIDT_Info)
+ Success &= verifier.handleDebugInfo();
+ if (DumpType == DIDT_All || DumpType == DIDT_Line)
+ Success &= verifier.handleDebugLine();
Success &= verifier.handleAccelTables();
return Success;
}
More information about the llvm-commits
mailing list