[PATCH] D57693: [DebugInfo]Print correct value for special opcode address increment

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 6 02:31:52 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL353288: [DebugInfo]Print correct value for special opcode address increment (authored by jhenderson, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D57693?vs=185274&id=185514#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57693/new/

https://reviews.llvm.org/D57693

Files:
  llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test


Index: llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test
===================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/verbose.test
+++ llvm/trunk/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
Index: llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
===================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -817,8 +817,8 @@
       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);
       }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57693.185514.patch
Type: text/x-patch
Size: 1232 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190206/133a66cb/attachment.bin>


More information about the llvm-commits mailing list