1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
29 addr: 0x0000000000000000
41 addr: 0x000000000000005D
51 - sectname: __debug_str
53 addr: 0x000000000000008D
63 - sectname: __debug_loc
65 addr: 0x0000000000000143
75 - sectname: __debug_abbrev
77 addr: 0x0000000000000143
87 - sectname: __debug_info
89 addr: 0x00000000000001AB
99 - sectname: __debug_ranges
101 addr: 0x000000000000023D
108 reserved1: 0x00000000
109 reserved2: 0x00000000
110 reserved3: 0x00000000
111 - sectname: __debug_macinfo
113 addr: 0x000000000000023D
120 reserved1: 0x00000000
121 reserved2: 0x00000000
122 reserved3: 0x00000000
123 - sectname: __apple_names
125 addr: 0x000000000000023E
132 reserved1: 0x00000000
133 reserved2: 0x00000000
134 reserved3: 0x00000000
135 - sectname: __apple_objc
137 addr: 0x000000000000027A
144 reserved1: 0x00000000
145 reserved2: 0x00000000
146 reserved3: 0x00000000
147 - sectname: __apple_namespac
149 addr: 0x000000000000029E
156 reserved1: 0x00000000
157 reserved2: 0x00000000
158 reserved3: 0x00000000
159 - sectname: __apple_types
161 addr: 0x00000000000002C2
168 reserved1: 0x00000000
169 reserved2: 0x00000000
170 reserved3: 0x00000000
171 - sectname: __compact_unwind
173 addr: 0x0000000000000348
180 reserved1: 0x00000000
181 reserved2: 0x00000000
182 reserved3: 0x00000000
183 - sectname: __eh_frame
185 addr: 0x0000000000000368
192 reserved1: 0x00000000
193 reserved2: 0x00000000
194 reserved3: 0x00000000
195 - sectname: __debug_line
197 addr: 0x00000000000003A8
204 reserved1: 0x00000000
205 reserved2: 0x00000000
206 reserved3: 0x00000000
207 - cmd: LC_VERSION_MIN_MACOSX
251 - _compilerrt_abort_impl
256 - 'clang version 4.0.0 (trunk 290181) (llvm/trunk 290209)'
257 - ../compiler-rt/lib/builtins/absvdi2.c
258 - /Users/cbieneman/dev/open-source/llvm-build-rel
269 Tag: DW_TAG_compile_unit
270 Children: DW_CHILDREN_yes
272 - Attribute: DW_AT_producer
274 - Attribute: DW_AT_language
276 - Attribute: DW_AT_name
278 - Attribute: DW_AT_stmt_list
279 Form: DW_FORM_sec_offset
280 - Attribute: DW_AT_comp_dir
282 - Attribute: DW_AT_low_pc
284 - Attribute: DW_AT_high_pc
287 Tag: DW_TAG_base_type
288 Children: DW_CHILDREN_no
290 - Attribute: DW_AT_name
292 - Attribute: DW_AT_encoding
294 - Attribute: DW_AT_byte_size
298 Children: DW_CHILDREN_no
300 - Attribute: DW_AT_type
302 - Attribute: DW_AT_name
304 - Attribute: DW_AT_decl_file
306 - Attribute: DW_AT_decl_line
309 Tag: DW_TAG_subprogram
310 Children: DW_CHILDREN_yes
312 - Attribute: DW_AT_low_pc
314 - Attribute: DW_AT_high_pc
316 - Attribute: DW_AT_frame_base
317 Form: DW_FORM_exprloc
318 - Attribute: DW_AT_name
320 - Attribute: DW_AT_decl_file
322 - Attribute: DW_AT_decl_line
324 - Attribute: DW_AT_prototyped
325 Form: DW_FORM_flag_present
326 - Attribute: DW_AT_type
328 - Attribute: DW_AT_external
329 Form: DW_FORM_flag_present
331 Tag: DW_TAG_formal_parameter
332 Children: DW_CHILDREN_no
334 - Attribute: DW_AT_location
335 Form: DW_FORM_exprloc
336 - Attribute: DW_AT_name
338 - Attribute: DW_AT_decl_file
340 - Attribute: DW_AT_decl_line
342 - Attribute: DW_AT_type
346 Children: DW_CHILDREN_no
348 - Attribute: DW_AT_location
349 Form: DW_FORM_exprloc
350 - Attribute: DW_AT_name
352 - Attribute: DW_AT_decl_file
354 - Attribute: DW_AT_decl_line
356 - Attribute: DW_AT_type
359 Tag: DW_TAG_const_type
360 Children: DW_CHILDREN_no
362 - Attribute: DW_AT_type
368 #CHECK: - 'clang version 4.0.0 (trunk 290181) (llvm/trunk 290209)'
369 #CHECK: - '../compiler-rt/lib/builtins/absvdi2.c'
370 #CHECK: - '/Users/cbieneman/dev/open-source/llvm-build-rel'
373 #CHECK: - long long int
378 #CHECK: debug_abbrev:
380 #CHECK: Tag: DW_TAG_compile_unit
381 #CHECK: Children: DW_CHILDREN_yes
383 #CHECK: - Attribute: DW_AT_producer
384 #CHECK: Form: DW_FORM_strp
385 #CHECK: - Attribute: DW_AT_language
386 #CHECK: Form: DW_FORM_data2
387 #CHECK: - Attribute: DW_AT_name
388 #CHECK: Form: DW_FORM_strp
389 #CHECK: - Attribute: DW_AT_stmt_list
390 #CHECK: Form: DW_FORM_sec_offset
391 #CHECK: - Attribute: DW_AT_comp_dir
392 #CHECK: Form: DW_FORM_strp
393 #CHECK: - Attribute: DW_AT_low_pc
394 #CHECK: Form: DW_FORM_addr
395 #CHECK: - Attribute: DW_AT_high_pc
396 #CHECK: Form: DW_FORM_data4
398 #CHECK: Tag: DW_TAG_base_type
399 #CHECK: Children: DW_CHILDREN_no
401 #CHECK: - Attribute: DW_AT_name
402 #CHECK: Form: DW_FORM_strp
403 #CHECK: - Attribute: DW_AT_encoding
404 #CHECK: Form: DW_FORM_data1
405 #CHECK: - Attribute: DW_AT_byte_size
406 #CHECK: Form: DW_FORM_data1
408 #CHECK: Tag: DW_TAG_typedef
409 #CHECK: Children: DW_CHILDREN_no
411 #CHECK: - Attribute: DW_AT_type
412 #CHECK: Form: DW_FORM_ref4
413 #CHECK: - Attribute: DW_AT_name
414 #CHECK: Form: DW_FORM_strp
415 #CHECK: - Attribute: DW_AT_decl_file
416 #CHECK: Form: DW_FORM_data1
417 #CHECK: - Attribute: DW_AT_decl_line
418 #CHECK: Form: DW_FORM_data1
420 #CHECK: Tag: DW_TAG_subprogram
421 #CHECK: Children: DW_CHILDREN_yes
423 #CHECK: - Attribute: DW_AT_low_pc
424 #CHECK: Form: DW_FORM_addr
425 #CHECK: - Attribute: DW_AT_high_pc
426 #CHECK: Form: DW_FORM_data4
427 #CHECK: - Attribute: DW_AT_frame_base
428 #CHECK: Form: DW_FORM_exprloc
429 #CHECK: - Attribute: DW_AT_name
430 #CHECK: Form: DW_FORM_strp
431 #CHECK: - Attribute: DW_AT_decl_file
432 #CHECK: Form: DW_FORM_data1
433 #CHECK: - Attribute: DW_AT_decl_line
434 #CHECK: Form: DW_FORM_data1
435 #CHECK: - Attribute: DW_AT_prototyped
436 #CHECK: Form: DW_FORM_flag_present
437 #CHECK: - Attribute: DW_AT_type
438 #CHECK: Form: DW_FORM_ref4
439 #CHECK: - Attribute: DW_AT_external
440 #CHECK: Form: DW_FORM_flag_present
442 #CHECK: Tag: DW_TAG_formal_parameter
443 #CHECK: Children: DW_CHILDREN_no
445 #CHECK: - Attribute: DW_AT_location
446 #CHECK: Form: DW_FORM_exprloc
447 #CHECK: - Attribute: DW_AT_name
448 #CHECK: Form: DW_FORM_strp
449 #CHECK: - Attribute: DW_AT_decl_file
450 #CHECK: Form: DW_FORM_data1
451 #CHECK: - Attribute: DW_AT_decl_line
452 #CHECK: Form: DW_FORM_data1
453 #CHECK: - Attribute: DW_AT_type
454 #CHECK: Form: DW_FORM_ref4
456 #CHECK: Tag: DW_TAG_variable
457 #CHECK: Children: DW_CHILDREN_no
459 #CHECK: - Attribute: DW_AT_location
460 #CHECK: Form: DW_FORM_exprloc
461 #CHECK: - Attribute: DW_AT_name
462 #CHECK: Form: DW_FORM_strp
463 #CHECK: - Attribute: DW_AT_decl_file
464 #CHECK: Form: DW_FORM_data1
465 #CHECK: - Attribute: DW_AT_decl_line
466 #CHECK: Form: DW_FORM_data1
467 #CHECK: - Attribute: DW_AT_type
468 #CHECK: Form: DW_FORM_ref4
470 #CHECK: Tag: DW_TAG_const_type
471 #CHECK: Children: DW_CHILDREN_no
473 #CHECK: - Attribute: DW_AT_type
474 #CHECK: Form: DW_FORM_ref4