summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 69a4fe64b75..59cf636e604 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -335,8 +335,14 @@ void DWARFContext::dump(
isLittleEndian(), savedAddressByteSize);
DWARFDebugLine::LineTable LineTable;
uint32_t Offset = *StmtOffset;
- LineTable.parse(lineData, &Offset);
- LineTable.dump(OS);
+ // Verbose dumping is done during parsing and not on the intermediate
+ // representation.
+ if (DumpOpts.Verbose) {
+ LineTable.parse(lineData, &Offset, &OS);
+ } else {
+ LineTable.parse(lineData, &Offset);
+ LineTable.dump(OS);
+ }
}
}
}
OpenPOWER on IntegriCloud