1 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o %t.o
2 # RUN: llvm-dwarfdump --debug-loc -v %t.o | FileCheck %s
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_value
10 .section .debug_loc,"",@progbits
11 .quad 0xffffffffffffffff
15 .short 3 # Loc expr size
16 .byte 17 # DW_OP_consts
18 .byte 159 # DW_OP_stack_value
21 .section .debug_abbrev,"",@progbits
22 .byte 1 # Abbreviation Code
23 .byte 17 # DW_TAG_compile_unit
24 .byte 0 # DW_CHILDREN_no
28 .section .debug_info,"",@progbits
29 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
31 .short 4 # DWARF version number
32 .long .debug_abbrev # Offset Into Abbrev. Section
33 .byte 8 # Address Size (in bytes)
34 .byte 1 # Abbrev [1] DW_TAG_compile_unit