[BOLT][DWARF] Fix bolt/test/X86/shared-abbrev.s

There should not be a end of child mark before DW_AT_ranges, removed it and fixed unit offset.

Reviewed By: ayermolo

Differential Revision: https://reviews.llvm.org/D130335
This commit is contained in:
zr33 2022-07-22 10:45:09 -07:00 committed by Alexander Yermolovich
parent 417738d3a6
commit a2035c566f

View file

@ -12,14 +12,14 @@
# CHECK-NEXT: DW_AT_stmt_list
# CHECK-NEXT: DW_AT_low_pc
# CHECK-NEXT: DW_AT_ranges
# CHECK: 0x0000001d:
# CHECK: 0x0000001c:
# CHECK-SAME: abbr_offset = 0x0017
# CHECK-EMPTY:
# CHECK: DW_TAG_compile_unit
# CHECK-NEXT: DW_AT_stmt_list
# CHECK-NEXT: DW_AT_low_pc
# CHECK-NEXT: DW_AT_ranges
# CHECK: 0x0000003a:
# CHECK: 0x00000039:
# CHECK-SAME: abbr_offset = 0x0000
# CHECK-EMPTY:
# CHECK-NEXT: DW_TAG_compile_unit
@ -78,7 +78,6 @@ main: # @main
.byte 2 # Abbrev [2] DW_TAG_compile_unit
.long .Lline_table_start0 # DW_AT_stmt_list
.quad 0 # DW_AT_low_pc
.byte 0 # End Of Children Mark
.long .Ldebug_ranges0 # DW_AT_ranges --- end manual --
.Ldebug_info_end0:
@ -104,7 +103,6 @@ main: # @main
.byte 2 # Abbrev [2] DW_TAG_compile_unit
.long .Lline_table_start0 # DW_AT_stmt_list
.quad 0 # DW_AT_low_pc
.byte 0 # End Of Children Mark
.long .Ldebug_ranges0 # DW_AT_ranges --- end manual --
.Ldebug_info_end2:
.section .debug_ranges,"",@progbits