59 lines · plain
1# RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj | llvm-dwarfdump - | FileCheck %s2#3# CHECK: DW_TAG_variable4# CHECK-NEXT: DW_AT_name ("a")5# CHECK-NEXT: DW_AT_location6# CHECK-NEXT: (0x0000000000000000, 0x0000000000000001): DW_OP_addr 0xdeadbeefbaadf00d7 8 .section .debug_str,"MS",@progbits,19.Linfo_producer:10 .asciz "hand-written DWARF"11.Lname_a:12 .asciz "a"13 14 .section .debug_loc,"",@progbits15.Ldebug_loc0:16 .quad 017 .quad 118 .short .Lloc0_end-.Lloc0_start # Loc expr size19.Lloc0_start:20 .byte 3 # DW_OP_addr21 .quad 0xdeadbeefbaadf00d22.Lloc0_end:23 .quad 024 .quad 025 26 .section .debug_abbrev,"",@progbits27 .byte 1 # Abbreviation Code28 .byte 17 # DW_TAG_compile_unit29 .byte 1 # DW_CHILDREN_yes30 .byte 37 # DW_AT_producer31 .byte 14 # DW_FORM_strp32 .byte 0 # EOM(1)33 .byte 0 # EOM(2)34 .byte 5 # Abbreviation Code35 .byte 52 # DW_TAG_variable36 .byte 0 # DW_CHILDREN_no37 .byte 3 # DW_AT_name38 .byte 14 # DW_FORM_strp39 .byte 2 # DW_AT_location40 .byte 23 # DW_FORM_sec_offset41 .byte 0 # EOM(1)42 .byte 0 # EOM(2)43 .byte 0 # EOM(3)44 45 .section .debug_info,"",@progbits46.Lcu_begin0:47 .long .Lcu_end0-.Lcu_start0 # Length of Unit48.Lcu_start0:49 .short 4 # DWARF version number50 .long .debug_abbrev # Offset Into Abbrev. Section51 .byte 8 # Address Size (in bytes)52 .byte 1 # Abbrev [1] DW_TAG_compile_unit53 .long .Linfo_producer # DW_AT_producer54 .byte 5 # Abbrev [5] DW_TAG_variable55 .long .Lname_a # DW_AT_name56 .long .Ldebug_loc0 # DW_AT_location57 .byte 0 # End Of Children Mark58.Lcu_end0:59