61 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: DW_OP_entry_value(DW_OP_breg5 RDI+0), DW_OP_stack_value)7 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 163 # DW_OP_entry_value21 .byte 2 # 222 .byte 117 # DW_OP_breg523 .byte 0 # +024 .byte 159 # DW_OP_stack_value25.Lloc0_end:26 .quad 027 .quad 028 .section .debug_abbrev,"",@progbits29 .byte 1 # Abbreviation Code30 .byte 17 # DW_TAG_compile_unit31 .byte 1 # DW_CHILDREN_yes32 .byte 37 # DW_AT_producer33 .byte 14 # DW_FORM_strp34 .byte 0 # EOM(1)35 .byte 0 # EOM(2)36 .byte 5 # Abbreviation Code37 .byte 52 # DW_TAG_variable38 .byte 0 # DW_CHILDREN_no39 .byte 3 # DW_AT_name40 .byte 14 # DW_FORM_strp41 .byte 2 # DW_AT_location42 .byte 23 # DW_FORM_sec_offset43 .byte 0 # EOM(1)44 .byte 0 # EOM(2)45 .byte 0 # EOM(3)46 47 .section .debug_info,"",@progbits48.Lcu_begin0:49 .long .Lcu_end0-.Lcu_start0 # Length of Unit50.Lcu_start0:51 .short 4 # DWARF version number52 .long .debug_abbrev # Offset Into Abbrev. Section53 .byte 8 # Address Size (in bytes)54 .byte 1 # Abbrev [1] DW_TAG_compile_unit55 .long .Linfo_producer # DW_AT_producer56 .byte 5 # Abbrev [5] DW_TAG_variable57 .long .Lname_a # DW_AT_name58 .long .Ldebug_loc0 # DW_AT_location59 .byte 0 # End Of Children Mark60.Lcu_end0:61