1 # RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o %t.o
2 # RUN: llvm-dwarfdump --debug-loc %t.o | FileCheck %s
4 # CHECK: .debug_loc contents:
5 # CHECK-NEXT: 0x00000000:
6 # CHECK-NEXT: [0xffffffffffffffff, 0x000000000000002a):
7 # CHECK-NEXT: [0x0000000000000003, 0x0000000000000007): DW_OP_consts +3, DW_OP_stack_value
9 .section .debug_loc,"",@progbits
10 .quad 0xffffffffffffffff
14 .short 3 # Loc expr size
15 .byte 17 # DW_OP_consts
17 .byte 159 # DW_OP_stack_value
20 .section .debug_abbrev,"",@progbits
21 .byte 1 # Abbreviation Code
22 .byte 17 # DW_TAG_compile_unit
23 .byte 0 # DW_CHILDREN_no
27 .section .debug_info,"",@progbits
28 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
30 .short 4 # DWARF version number
31 .long .debug_abbrev # Offset Into Abbrev. Section
32 .byte 8 # Address Size (in bytes)
33 .byte 1 # Abbrev [1] DW_TAG_compile_unit