brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 5031e14 Raw
43 lines · plain
1# RUN: llvm-mc -triple x86_64 %s -filetype=obj -o %t.o2# RUN: llvm-dwarfdump -debug-info %t.o | FileCheck %s3# RUN: llvm-dwarfdump -verify %t.o | FileCheck %s --check-prefix=VERIFY4 5# CHECK: DW_TAG_variable6# CHECK-NEXT: DW_AT_location (DW_OP_call_ref 0x1100223344)7 8# VERIFY-NOT: error: DIE contains invalid DWARF expression:9# VERIFY: No errors.10 11    .section .debug_abbrev,"",@progbits12    .uleb128 1                      # Abbreviation Code13    .uleb128 17                     # DW_TAG_compile_unit14    .byte 1                         # DW_CHILDREN_yes15    .byte 0                         # EOM(1)16    .byte 0                         # EOM(2)17    .uleb128 5                      # Abbreviation Code18    .uleb128 52                     # DW_TAG_variable19    .byte 0                         # DW_CHILDREN_no20    .uleb128 2                      # DW_AT_location21    .uleb128 24                     # DW_FORM_exprloc22    .byte 0                         # EOM(1)23    .byte 0                         # EOM(2)24    .byte 0                         # EOM(3)25 26    .section .debug_info,"",@progbits27    .long 0xffffffff                # DWARF64 mark28    .quad .Lcu_end-.Lcu_start       # Length of Unit29.Lcu_start:30    .short 5                        # DWARF version number31    .byte 1                         # DW_UT_compile32    .byte 8                         # Address Size33    .quad .debug_abbrev             # Offset Into Abbrev. Section34    .uleb128 1                      # Abbrev [1] DW_TAG_compile_unit35    .uleb128 5                      # Abbrev [5] DW_TAG_variable36    .byte .Lloc_end-.Lloc_begin     # DW_AT_location37.Lloc_begin:38    .byte 154                       # DW_OP_call_ref39    .quad 0x1100223344              # Offset40.Lloc_end:41    .byte 0                         # End Of Children Mark42.Lcu_end:43