diff options
author | James Henderson <james.henderson@sony.com> | 2019-12-18 16:10:04 +0000 |
---|---|---|
committer | James Henderson <james.henderson@sony.com> | 2019-12-19 12:54:04 +0000 |
commit | 60cb33c9b8543dee1630410c13679088d0569d03 (patch) | |
tree | 4abd33ab8525b94854c0d7aa2db907a190452365 /llvm/lib/DebugInfo/DWARF | |
parent | b94aeabfae1b1e062152e1b0ae4df3623f784fe2 (diff) | |
download | bcm5719-llvm-60cb33c9b8543dee1630410c13679088d0569d03.tar.gz bcm5719-llvm-60cb33c9b8543dee1630410c13679088d0569d03.zip |
[DebugInfo] Fix verbose printing of rows added via DW_LNE_end_sequence
The debug line verbose printing was printing the wrong values for rows
added via DW_LNE_end_sequence, because the row was being printed AFTER
its state had been reset following it being appended to the line table.
This patch fixes this issue by printing the row before appending it.
Reviewers: dblaikie, MaskRay
Differential Revision: https://reviews.llvm.org/D71664
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index f5b1c40024d..cf31f5e57a4 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -599,12 +599,12 @@ Error DWARFDebugLine::LineTable::parse( // address is that of the byte after the last target machine instruction // of the sequence. State.Row.EndSequence = true; - State.appendRowToMatrix(); if (OS) { *OS << "\n"; OS->indent(12); State.Row.dump(*OS); } + State.appendRowToMatrix(); State.resetRowAndSequence(); break; |