diff options
author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-02-06 10:31:50 +0000 |
---|---|---|
committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-02-06 10:31:50 +0000 |
commit | b6b5b1a5921e2319cc40c6899b8fe1cdadc44ee7 (patch) | |
tree | 49b38c212c18d067da08bbefd7f6f82c4c814d07 | |
parent | cd1424aebb37d7aceea37f2c2740f1da42bf879b (diff) | |
download | bcm5719-llvm-b6b5b1a5921e2319cc40c6899b8fe1cdadc44ee7.tar.gz bcm5719-llvm-b6b5b1a5921e2319cc40c6899b8fe1cdadc44ee7.zip |
[DebugInfo]Print correct value for special opcode address increment
The wrong variable was being used when printing the address increment in
verbose output of .debug_line. This patch fixes this.
Reviewed by: JDevlieghere
Differential Revision: https://reviews.llvm.org/D57693
llvm-svn: 353288
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 4 | ||||
-rw-r--r-- | llvm/test/tools/llvm-dwarfdump/X86/verbose.test | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 57a8a2cac4e..ac9b2e0d28f 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -817,8 +817,8 @@ Error DWARFDebugLine::LineTable::parse( State.Row.Address += AddrOffset; if (OS) { - *OS << "address += " << ((uint32_t)AdjustOpcode) - << ", line += " << LineOffset << "\n"; + *OS << "address += " << AddrOffset << ", line += " << LineOffset + << "\n"; OS->indent(12); State.Row.dump(*OS); } diff --git a/llvm/test/tools/llvm-dwarfdump/X86/verbose.test b/llvm/test/tools/llvm-dwarfdump/X86/verbose.test index 2d52247f15f..a05edb9a2ae 100644 --- a/llvm/test/tools/llvm-dwarfdump/X86/verbose.test +++ b/llvm/test/tools/llvm-dwarfdump/X86/verbose.test @@ -16,7 +16,7 @@ # CHECK: 0x0000000000000000 1 0 1 0 0 is_stmt # CHECK: 05 DW_LNS_set_column (12) # CHECK: 0a DW_LNS_set_prologue_end -# CHECK: 66 address += 89, line += 0 +# CHECK: 66 address += 6, line += 0 # CHECK: 0x0000000000000006 1 12 1 0 0 is_stmt prologue_end # CHECK: 02 DW_LNS_advance_pc (2) # CHECK: 00 DW_LNE_end_sequence |