1 # REQUIRES: x86-registered-target
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: echo '---' > %t2.map
5 # RUN: echo "triple: 'x86_64-apple-darwin'" >> %t2.map
6 # RUN: echo 'objects:' >> %t2.map
7 # RUN: echo " - filename: '%t.o'" >> %t2.map
8 # RUN: echo ' symbols:' >> %t2.map
9 # RUN: echo ' - { sym: __Z3foov, objAddr: 0x0, binAddr: 0x10000, size: 0x10 }' >> %t2.map
10 # RUN: echo '...' >> %t2.map
11 # RUN: dsymutil -y -j 16 %t2.map -f -o - | llvm-dwarfdump -a - | FileCheck %s
13 # CHECK: file format Mach-O 64-bit x86-64
14 # CHECK: .debug_info contents:
15 # CHECK: Compile Unit:
16 # CHECK: DW_TAG_compile_unit
17 # CHECK-NOT: DW_TAG_class_type
18 # CHECK: Compile Unit:
19 # CHECK: DW_TAG_compile_unit
20 # CHECK: DW_TAG_class_type
28 cpusubtype: 0x00000003
47 - sectname: __debug_abbrev
49 addr: 0x000000000000000F
59 - sectname: __debug_info
61 addr: 0x000000000000100
105 - Tag: DW_TAG_compile_unit
106 Children: DW_CHILDREN_yes
108 - Attribute: DW_AT_producer
110 - Attribute: DW_AT_language
112 - Attribute: DW_AT_name
114 - Tag: DW_TAG_class_type
115 Children: DW_CHILDREN_no
117 - Attribute: DW_AT_name
119 - Tag: DW_TAG_variable
120 Children: DW_CHILDREN_no
122 - Attribute: DW_AT_name
124 - Attribute: DW_AT_const_value
126 - Attribute: DW_AT_type
128 - Tag: DW_TAG_pointer_type
129 Children: DW_CHILDREN_no
131 - Attribute: DW_AT_type
134 - Tag: DW_TAG_compile_unit
135 Children: DW_CHILDREN_yes
137 - Attribute: DW_AT_producer
139 - Attribute: DW_AT_language
141 - Attribute: DW_AT_name
143 - Tag: DW_TAG_class_type
144 Children: DW_CHILDREN_no
146 - Attribute: DW_AT_name
148 - Tag: DW_TAG_variable
149 Children: DW_CHILDREN_no
151 - Attribute: DW_AT_name
153 - Attribute: DW_AT_const_value
155 - Attribute: DW_AT_type
156 Form: DW_FORM_ref_addr
157 - Tag: DW_TAG_pointer_type
158 Children: DW_CHILDREN_no
160 - Attribute: DW_AT_type