1 # RUN: llvm-mc %s -filetype obj -triple x86_64-unknown-elf -o - | \
2 # RUN: llvm-dwarfdump -debug-info - | \
5 .section .debug_abbrev,"",@progbits
6 .byte 0x01 # Abbrev code
7 .byte 0x41 # DW_TAG_type_unit
8 .byte 0x01 # DW_CHILDREN_yes
9 .byte 0x17 # DW_AT_visibility
10 .byte 0x0b # DW_FORM_data1
13 .byte 0x02 # Abbrev code
14 .byte 0x13 # DW_TAG_structure_type
15 .byte 0x00 # DW_CHILDREN_no (no members)
16 .byte 0x17 # DW_AT_visibility
17 .byte 0x0b # DW_FORM_data1
22 .section .debug_info,"",@progbits
23 # CHECK: .debug_info contents:
24 # CHECK-NEXT: 0x00000000: Type Unit:
26 .long 0xffffffff # DWARF64 mark
27 .quad TU_5_64_end-TU_5_64_version # Length of Unit
28 # CHECK-SAME: length = 0x00000022
30 .short 5 # DWARF version number
31 # CHECK-SAME: version = 0x0005
33 .byte 8 # Address Size (in bytes)
34 .quad .debug_abbrev # Offset Into Abbrev. Section
35 # CHECK-SAME: abbr_offset = 0x0000
36 # CHECK-SAME: addr_size = 0x08
37 # CHECK-SAME: name = ''
38 .quad 0x0011223344556677 # Type Signature
39 # CHECK-SAME: type_signature = 0x0011223344556677
40 .quad TU_5_64_type-TU_5_64_start # Type offset
41 # CHECK-SAME: type_offset = 0x002a
42 # CHECK-SAME: (next unit at 0x0000002e)
44 .byte 1 # Abbreviation code
45 # CHECK: 0x00000028: DW_TAG_type_unit
46 .byte 1 # DW_VIS_local
47 # CHECK-NEXT: DW_AT_visibility (DW_VIS_local)
50 .byte 2 # Abbreviation code
51 # CHECK: 0x0000002a: DW_TAG_structure_type
52 .byte 1 # DW_VIS_local
53 # CHECK-NEXT: DW_AT_visibility (DW_VIS_local)
56 # CHECK: 0x0000002c: NULL