Debian Codegraph @

llvm/test/tools/llvm-dwarfdump/AArch64/DW_AT_APPLE_enum_kind.s

raw
1 ;; Demonstrate dumping DW_AT_APPLE_enum_kind.
2 ; RUN: llvm-mc -triple=aarch64--darwin -filetype=obj < %s | \
3 ; RUN: llvm-dwarfdump -v - | FileCheck %s
4
5 ; CHECK: .debug_abbrev contents:
6 ; CHECK: DW_AT_APPLE_enum_kind DW_FORM_data1
7 ; CHECK: .debug_info contents:
8 ; CHECK: DW_AT_APPLE_enum_kind [DW_FORM_data1] (DW_APPLE_ENUM_KIND_Closed)
9 ; CHECK: DW_AT_APPLE_enum_kind [DW_FORM_data1] (DW_APPLE_ENUM_KIND_Open)
10
11 .section __DWARF,__debug_abbrev,regular,debug
12 Lsection_abbrev:
13 .byte 1 ; Abbreviation Code
14 .byte 17 ; DW_TAG_compile_unit
15 .byte 1 ; DW_CHILDREN_yes
16 .byte 0 ; EOM(1)
17 .byte 0 ; EOM(2)
18 .byte 2 ; Abbreviation Code
19 .byte 4 ; DW_TAG_enumeration_type
20 .byte 0 ; DW_CHILDREN_no
21 .ascii "\361\177" ; DW_AT_APPLE_enum_kind
22 .byte 11 ; DW_FORM_data1
23 .byte 0 ; EOM(1)
24 .byte 0 ; EOM(2)
25 .byte 0 ; EOM(3)
26 .section __DWARF,__debug_info,regular,debug
27 Lsection_info:
28 Lcu_begin0:
29 .set Lset0, Ldebug_info_end0-Ldebug_info_start0 ; Length of Unit
30 .long Lset0
31 Ldebug_info_start0:
32 .short 5 ; DWARF version number
33 .byte 1 ; DWARF Unit Type
34 .byte 8 ; Address Size (in bytes)
35 .set Lset1, Lsection_abbrev-Lsection_abbrev ; Offset Into Abbrev. Section
36 .long Lset1
37 .byte 1 ; Abbrev [1] 0xc:0x40 DW_TAG_compile_unit
38 .byte 2 ; Abbrev [3] 0x2a:0x9 DW_TAG_enumeration_type
39 .byte 0 ; DW_APPLE_ENUM_KIND_Closed
40 .byte 2 ; Abbrev [3] 0x42:0x9 DW_TAG_enumeration_type
41 .byte 1 ; DW_APPLE_ENUM_KIND_Open
42 .byte 0 ; End Of Children Mark
43 Ldebug_info_end0:
44