[llvm] r353288 - [DebugInfo]Print correct value for special opcode address increment
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 6 02:31:50 PST 2019
Author: jhenderson
Date: Wed Feb 6 02:31:50 2019
New Revision: 353288
URL: http://llvm.org/viewvc/llvm-project?rev=353288&view=rev
Log:
[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
Modified:
llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp?rev=353288&r1=353287&r2=353288&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp Wed Feb 6 02:31:50 2019
@@ -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);
}
Modified: llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test?rev=353288&r1=353287&r2=353288&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test Wed Feb 6 02:31:50 2019
@@ -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
More information about the llvm-commits
mailing list