brintos

brintos / llvm-project-archived public Read only

0
0
Text · 833 B · 03a2ee4 Raw
21 lines · plain
1# RUN: llvm-mc %s -filetype obj -triple x86_64-pc-linux -o %t.o2# RUN: llvm-dwarfdump --debug-loc %t.o | FileCheck %s3 4# We make sure that llvm-dwarfdump can dump the .debug_loc.dwo section5# without requiring a compilation unit in the .debug_info.dwo section.6 7# CHECK:         .debug_loc.dwo contents:8# CHECK-NEXT:    0x00000000:9# CHECK-NEXT:    DW_LLE_startx_length (0x00000001, 0x00000010): DW_OP_reg5 RDI10 11.section .debug_loc.dwo,"e",@progbits12# One location list. The pre-DWARF v5 implementation only recognizes13# DW_LLE_startx_length as an entry kind in .debug_loc.dwo (besides14# end_of_list), which is what llvm generates as well.15.byte 3          # DW_LLE_startx_length16.byte 0x01       # Index17.long 0x10       # Length18.short 1         # Loc expr size19.byte 85         # DW_OP_reg520.byte 0          # DW_LLE_end_of_list21