summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index a5ee2dbd436..90df9f4e787 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -257,10 +257,10 @@ void DWARFContext::dump(
auto dumpDebugInfo = [&](bool IsExplicit, const char *Name,
DWARFSection Section, cu_iterator_range CUs) {
if (shouldDump(IsExplicit, Name, DIDT_ID_DebugInfo, Section.Data)) {
- for (const auto &CU : CUs)
- if (DumpOffset)
- CU->getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts);
- else
+ if (DumpOffset)
+ getDIEForOffset(DumpOffset.getValue()).dump(OS, 0, 0, DumpOpts);
+ else
+ for (const auto &CU : CUs)
CU->dump(OS, DumpOpts);
}
};
OpenPOWER on IntegriCloud