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
268 Tag: DW_TAG_compile_unit
269 Children: DW_CHILDREN_yes
271 - Attribute: DW_AT_producer
273 - Attribute: DW_AT_language
275 - Attribute: DW_AT_name
277 - Attribute: DW_AT_stmt_list
278 Form: DW_FORM_sec_offset
279 - Attribute: DW_AT_comp_dir
281 - Attribute: DW_AT_low_pc
283 - Attribute: DW_AT_high_pc
286 Tag: DW_TAG_base_type
287 Children: DW_CHILDREN_no
289 - Attribute: DW_AT_name
291 - Attribute: DW_AT_encoding
293 - Attribute: DW_AT_byte_size
297 Children: DW_CHILDREN_no
299 - Attribute: DW_AT_type
301 - Attribute: DW_AT_name
303 - Attribute: DW_AT_decl_file
305 - Attribute: DW_AT_decl_line
308 Tag: DW_TAG_subprogram
309 Children: DW_CHILDREN_yes
311 - Attribute: DW_AT_low_pc
313 - Attribute: DW_AT_high_pc
315 - Attribute: DW_AT_frame_base
316 Form: DW_FORM_exprloc
317 - Attribute: DW_AT_name
319 - Attribute: DW_AT_decl_file
321 - Attribute: DW_AT_decl_line
323 - Attribute: DW_AT_prototyped
324 Form: DW_FORM_flag_present
325 - Attribute: DW_AT_type
327 - Attribute: DW_AT_external
328 Form: DW_FORM_flag_present
330 Tag: DW_TAG_formal_parameter
331 Children: DW_CHILDREN_no
333 - Attribute: DW_AT_location
334 Form: DW_FORM_exprloc
335 - Attribute: DW_AT_name
337 - Attribute: DW_AT_decl_file
339 - Attribute: DW_AT_decl_line
341 - Attribute: DW_AT_type
345 Children: DW_CHILDREN_no
347 - Attribute: DW_AT_location
348 Form: DW_FORM_exprloc
349 - Attribute: DW_AT_name
351 - Attribute: DW_AT_decl_file
353 - Attribute: DW_AT_decl_line
355 - Attribute: DW_AT_type
358 Tag: DW_TAG_const_type
359 Children: DW_CHILDREN_no
361 - Attribute: DW_AT_type
367 #CHECK: - 'clang version 4.0.0 (trunk 290181) (llvm/trunk 290209)'
368 #CHECK: - '../compiler-rt/lib/builtins/absvdi2.c'
369 #CHECK: - '/Users/cbieneman/dev/open-source/llvm-build-rel'
372 #CHECK: - long long int
377 #CHECK: debug_abbrev:
378 #CHECK: - Code: 0x00000001
379 #CHECK: Tag: DW_TAG_compile_unit
380 #CHECK: Children: DW_CHILDREN_yes
382 #CHECK: - Attribute: DW_AT_producer
383 #CHECK: Form: DW_FORM_strp
384 #CHECK: - Attribute: DW_AT_language
385 #CHECK: Form: DW_FORM_data2
386 #CHECK: - Attribute: DW_AT_name
387 #CHECK: Form: DW_FORM_strp
388 #CHECK: - Attribute: DW_AT_stmt_list
389 #CHECK: Form: DW_FORM_sec_offset
390 #CHECK: - Attribute: DW_AT_comp_dir
391 #CHECK: Form: DW_FORM_strp
392 #CHECK: - Attribute: DW_AT_low_pc
393 #CHECK: Form: DW_FORM_addr
394 #CHECK: - Attribute: DW_AT_high_pc
395 #CHECK: Form: DW_FORM_data4
396 #CHECK: - Code: 0x00000002
397 #CHECK: Tag: DW_TAG_base_type
398 #CHECK: Children: DW_CHILDREN_no
400 #CHECK: - Attribute: DW_AT_name
401 #CHECK: Form: DW_FORM_strp
402 #CHECK: - Attribute: DW_AT_encoding
403 #CHECK: Form: DW_FORM_data1
404 #CHECK: - Attribute: DW_AT_byte_size
405 #CHECK: Form: DW_FORM_data1
406 #CHECK: - Code: 0x00000003
407 #CHECK: Tag: DW_TAG_typedef
408 #CHECK: Children: DW_CHILDREN_no
410 #CHECK: - Attribute: DW_AT_type
411 #CHECK: Form: DW_FORM_ref4
412 #CHECK: - Attribute: DW_AT_name
413 #CHECK: Form: DW_FORM_strp
414 #CHECK: - Attribute: DW_AT_decl_file
415 #CHECK: Form: DW_FORM_data1
416 #CHECK: - Attribute: DW_AT_decl_line
417 #CHECK: Form: DW_FORM_data1
418 #CHECK: - Code: 0x00000004
419 #CHECK: Tag: DW_TAG_subprogram
420 #CHECK: Children: DW_CHILDREN_yes
422 #CHECK: - Attribute: DW_AT_low_pc
423 #CHECK: Form: DW_FORM_addr
424 #CHECK: - Attribute: DW_AT_high_pc
425 #CHECK: Form: DW_FORM_data4
426 #CHECK: - Attribute: DW_AT_frame_base
427 #CHECK: Form: DW_FORM_exprloc
428 #CHECK: - Attribute: DW_AT_name
429 #CHECK: Form: DW_FORM_strp
430 #CHECK: - Attribute: DW_AT_decl_file
431 #CHECK: Form: DW_FORM_data1
432 #CHECK: - Attribute: DW_AT_decl_line
433 #CHECK: Form: DW_FORM_data1
434 #CHECK: - Attribute: DW_AT_prototyped
435 #CHECK: Form: DW_FORM_flag_present
436 #CHECK: - Attribute: DW_AT_type
437 #CHECK: Form: DW_FORM_ref4
438 #CHECK: - Attribute: DW_AT_external
439 #CHECK: Form: DW_FORM_flag_present
440 #CHECK: - Code: 0x00000005
441 #CHECK: Tag: DW_TAG_formal_parameter
442 #CHECK: Children: DW_CHILDREN_no
444 #CHECK: - Attribute: DW_AT_location
445 #CHECK: Form: DW_FORM_exprloc
446 #CHECK: - Attribute: DW_AT_name
447 #CHECK: Form: DW_FORM_strp
448 #CHECK: - Attribute: DW_AT_decl_file
449 #CHECK: Form: DW_FORM_data1
450 #CHECK: - Attribute: DW_AT_decl_line
451 #CHECK: Form: DW_FORM_data1
452 #CHECK: - Attribute: DW_AT_type
453 #CHECK: Form: DW_FORM_ref4
454 #CHECK: - Code: 0x00000006
455 #CHECK: Tag: DW_TAG_variable
456 #CHECK: Children: DW_CHILDREN_no
458 #CHECK: - Attribute: DW_AT_location
459 #CHECK: Form: DW_FORM_exprloc
460 #CHECK: - Attribute: DW_AT_name
461 #CHECK: Form: DW_FORM_strp
462 #CHECK: - Attribute: DW_AT_decl_file
463 #CHECK: Form: DW_FORM_data1
464 #CHECK: - Attribute: DW_AT_decl_line
465 #CHECK: Form: DW_FORM_data1
466 #CHECK: - Attribute: DW_AT_type
467 #CHECK: Form: DW_FORM_ref4
468 #CHECK: - Code: 0x00000007
469 #CHECK: Tag: DW_TAG_const_type
470 #CHECK: Children: DW_CHILDREN_no
472 #CHECK: - Attribute: DW_AT_type
473 #CHECK: Form: DW_FORM_ref4