[PATCH] D153334: [DWARFLinker][DWARFv5] change emitSLEB128IntValue with emitULEB128IntValue for ranges.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 03:18:52 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG64df75fb26e5: [DWARFLinker][DWARFv5] change emitSLEB128IntValue with emitULEB128IntValue for… (authored by avl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153334/new/
https://reviews.llvm.org/D153334
Files:
llvm/lib/DWARFLinker/DWARFStreamer.cpp
llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-rnglists.test
Index: llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-rnglists.test
===================================================================
--- llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-rnglists.test
+++ llvm/test/tools/llvm-dwarfutil/ELF/X86/dwarf5-rnglists.test
@@ -57,7 +57,7 @@
#DWARF-CHECK: [0x0000000000001130, 0x0000000000001170)
#DWARF-CHECK-NOT: .debug_addr contents:
#DWARF-CHECK: .debug_rnglists contents:
-#DWARF-CHECK: 0x00000000: range list header: length = 0x00000040, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000
+#DWARF-CHECK: 0x00000000: range list header: length = 0x0000003f, format = DWARF32, version = 0x0005, addr_size = 0x08, seg_size = 0x00, offset_entry_count = 0x00000000
#DWARF-CHECK: ranges:
#DWARF-CHECK: 0x[[F1RANGE_OFF]]: [DW_RLE_start_length]: 0x0000000000001130, 0x0000000000000010 => [0x0000000000001130, 0x0000000000001140)
#DWARF-CHECK: {{.*}} [DW_RLE_end_of_list ]
Index: llvm/lib/DWARFLinker/DWARFStreamer.cpp
===================================================================
--- llvm/lib/DWARFLinker/DWARFStreamer.cpp
+++ llvm/lib/DWARFLinker/DWARFStreamer.cpp
@@ -496,7 +496,7 @@
RngListsSectionSize += AddressSize;
// Emit length of the range.
- RngListsSectionSize += MS->emitSLEB128IntValue(Range.end() - Range.start());
+ RngListsSectionSize += MS->emitULEB128IntValue(Range.end() - Range.start());
}
// Emit the terminator entry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153334.533201.patch
Type: text/x-patch
Size: 1468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230621/0369bb2f/attachment.bin>
More information about the llvm-commits
mailing list