36 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o %t.o2# RUN: llvm-dwarfdump --debug-loc -v %t.o | FileCheck %s3 4# CHECK: .debug_loc contents:5# CHECK-NEXT: 0x00000000:6# CHECK-NEXT: (0xffffffffffffffff, 0x000000000000002a)7# CHECK-NEXT: (0x0000000000000003, 0x0000000000000007)8# CHECK-NEXT: => [0x000000000000002d, 0x0000000000000031): DW_OP_consts +3, DW_OP_stack_value9 10 .section .debug_loc,"",@progbits11 .quad 0xffffffffffffffff12 .quad 4213 .quad 314 .quad 715 .short 3 # Loc expr size16 .byte 17 # DW_OP_consts17 .byte 3 # 318 .byte 159 # DW_OP_stack_value19 .quad 020 .quad 021 .section .debug_abbrev,"",@progbits22 .byte 1 # Abbreviation Code23 .byte 17 # DW_TAG_compile_unit24 .byte 0 # DW_CHILDREN_no25 .byte 0 # EOM(1)26 .byte 0 # EOM(2)27 .byte 0 # EOM(3)28 .section .debug_info,"",@progbits29 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit30.Ldebug_info_start0:31 .short 4 # DWARF version number32 .long .debug_abbrev # Offset Into Abbrev. Section33 .byte 8 # Address Size (in bytes)34 .byte 1 # Abbrev [1] DW_TAG_compile_unit35.Ldebug_info_end0:36