1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
28 addr: 0x0000000000000000
38 - sectname: __textcoal_nt
40 addr: 0x00000000000000BC
50 - sectname: __picsymbolstub1
52 addr: 0x00000000000000BC
64 addr: 0x00000000000000BC
74 - sectname: __debug_str
76 addr: 0x00000000000000EC
86 - sectname: __debug_loc
88 addr: 0x00000000000001A2
98 - sectname: __debug_abbrev
100 addr: 0x00000000000001A2
107 reserved1: 0x00000000
108 reserved2: 0x00000000
109 reserved3: 0x00000000
110 - sectname: __debug_info
112 addr: 0x000000000000020A
119 reserved1: 0x00000000
120 reserved2: 0x00000000
121 reserved3: 0x00000000
122 - sectname: __debug_ranges
124 addr: 0x0000000000000297
131 reserved1: 0x00000000
132 reserved2: 0x00000000
133 reserved3: 0x00000000
134 - sectname: __debug_macinfo
136 addr: 0x0000000000000297
143 reserved1: 0x00000000
144 reserved2: 0x00000000
145 reserved3: 0x00000000
146 - sectname: __apple_names
148 addr: 0x0000000000000298
155 reserved1: 0x00000000
156 reserved2: 0x00000000
157 reserved3: 0x00000000
158 - sectname: __apple_objc
160 addr: 0x00000000000002D4
167 reserved1: 0x00000000
168 reserved2: 0x00000000
169 reserved3: 0x00000000
170 - sectname: __apple_namespac
172 addr: 0x00000000000002F8
179 reserved1: 0x00000000
180 reserved2: 0x00000000
181 reserved3: 0x00000000
182 - sectname: __apple_types
184 addr: 0x000000000000031C
191 reserved1: 0x00000000
192 reserved2: 0x00000000
193 reserved3: 0x00000000
194 - sectname: __debug_frame
196 addr: 0x00000000000003A4
203 reserved1: 0x00000000
204 reserved2: 0x00000000
205 reserved3: 0x00000000
206 - sectname: __debug_line
208 addr: 0x00000000000003D4
215 reserved1: 0x00000000
216 reserved2: 0x00000000
217 reserved3: 0x00000000
218 - cmd: LC_VERSION_MIN_MACOSX
262 - _compilerrt_abort_impl
267 - 'clang version 4.0.0 (trunk 290181) (llvm/trunk 290209)'
268 - ../compiler-rt/lib/builtins/absvdi2.c
269 - /Users/cbieneman/dev/open-source/llvm-build-rel
279 Tag: DW_TAG_compile_unit
280 Children: DW_CHILDREN_yes
282 - Attribute: DW_AT_producer
284 - Attribute: DW_AT_language
286 - Attribute: DW_AT_name
288 - Attribute: DW_AT_stmt_list
289 Form: DW_FORM_sec_offset
290 - Attribute: DW_AT_comp_dir
292 - Attribute: DW_AT_low_pc
294 - Attribute: DW_AT_high_pc
297 Tag: DW_TAG_base_type
298 Children: DW_CHILDREN_no
300 - Attribute: DW_AT_name
302 - Attribute: DW_AT_encoding
304 - Attribute: DW_AT_byte_size
308 Children: DW_CHILDREN_no
310 - Attribute: DW_AT_type
312 - Attribute: DW_AT_name
314 - Attribute: DW_AT_decl_file
316 - Attribute: DW_AT_decl_line
319 Tag: DW_TAG_subprogram
320 Children: DW_CHILDREN_yes
322 - Attribute: DW_AT_low_pc
324 - Attribute: DW_AT_high_pc
326 - Attribute: DW_AT_frame_base
327 Form: DW_FORM_exprloc
328 - Attribute: DW_AT_name
330 - Attribute: DW_AT_decl_file
332 - Attribute: DW_AT_decl_line
334 - Attribute: DW_AT_prototyped
335 Form: DW_FORM_flag_present
336 - Attribute: DW_AT_type
338 - Attribute: DW_AT_external
339 Form: DW_FORM_flag_present
341 Tag: DW_TAG_formal_parameter
342 Children: DW_CHILDREN_no
344 - Attribute: DW_AT_location
345 Form: DW_FORM_exprloc
346 - Attribute: DW_AT_name
348 - Attribute: DW_AT_decl_file
350 - Attribute: DW_AT_decl_line
352 - Attribute: DW_AT_type
356 Children: DW_CHILDREN_no
358 - Attribute: DW_AT_location
359 Form: DW_FORM_exprloc
360 - Attribute: DW_AT_name
362 - Attribute: DW_AT_decl_file
364 - Attribute: DW_AT_decl_line
366 - Attribute: DW_AT_type
369 Tag: DW_TAG_const_type
370 Children: DW_CHILDREN_no
372 - Attribute: DW_AT_type
378 #CHECK: - 'clang version 4.0.0 (trunk 290181) (llvm/trunk 290209)'
379 #CHECK: - '../compiler-rt/lib/builtins/absvdi2.c'
380 #CHECK: - '/Users/cbieneman/dev/open-source/llvm-build-rel'
383 #CHECK: - long long int
388 #CHECK: debug_abbrev:
389 #CHECK: - Code: 0x00000001
390 #CHECK: Tag: DW_TAG_compile_unit
391 #CHECK: Children: DW_CHILDREN_yes
393 #CHECK: - Attribute: DW_AT_producer
394 #CHECK: Form: DW_FORM_strp
395 #CHECK: - Attribute: DW_AT_language
396 #CHECK: Form: DW_FORM_data2
397 #CHECK: - Attribute: DW_AT_name
398 #CHECK: Form: DW_FORM_strp
399 #CHECK: - Attribute: DW_AT_stmt_list
400 #CHECK: Form: DW_FORM_sec_offset
401 #CHECK: - Attribute: DW_AT_comp_dir
402 #CHECK: Form: DW_FORM_strp
403 #CHECK: - Attribute: DW_AT_low_pc
404 #CHECK: Form: DW_FORM_addr
405 #CHECK: - Attribute: DW_AT_high_pc
406 #CHECK: Form: DW_FORM_data4
407 #CHECK: - Code: 0x00000002
408 #CHECK: Tag: DW_TAG_base_type
409 #CHECK: Children: DW_CHILDREN_no
411 #CHECK: - Attribute: DW_AT_name
412 #CHECK: Form: DW_FORM_strp
413 #CHECK: - Attribute: DW_AT_encoding
414 #CHECK: Form: DW_FORM_data1
415 #CHECK: - Attribute: DW_AT_byte_size
416 #CHECK: Form: DW_FORM_data1
417 #CHECK: - Code: 0x00000003
418 #CHECK: Tag: DW_TAG_typedef
419 #CHECK: Children: DW_CHILDREN_no
421 #CHECK: - Attribute: DW_AT_type
422 #CHECK: Form: DW_FORM_ref4
423 #CHECK: - Attribute: DW_AT_name
424 #CHECK: Form: DW_FORM_strp
425 #CHECK: - Attribute: DW_AT_decl_file
426 #CHECK: Form: DW_FORM_data1
427 #CHECK: - Attribute: DW_AT_decl_line
428 #CHECK: Form: DW_FORM_data1
429 #CHECK: - Code: 0x00000004
430 #CHECK: Tag: DW_TAG_subprogram
431 #CHECK: Children: DW_CHILDREN_yes
433 #CHECK: - Attribute: DW_AT_low_pc
434 #CHECK: Form: DW_FORM_addr
435 #CHECK: - Attribute: DW_AT_high_pc
436 #CHECK: Form: DW_FORM_data4
437 #CHECK: - Attribute: DW_AT_frame_base
438 #CHECK: Form: DW_FORM_exprloc
439 #CHECK: - Attribute: DW_AT_name
440 #CHECK: Form: DW_FORM_strp
441 #CHECK: - Attribute: DW_AT_decl_file
442 #CHECK: Form: DW_FORM_data1
443 #CHECK: - Attribute: DW_AT_decl_line
444 #CHECK: Form: DW_FORM_data1
445 #CHECK: - Attribute: DW_AT_prototyped
446 #CHECK: Form: DW_FORM_flag_present
447 #CHECK: - Attribute: DW_AT_type
448 #CHECK: Form: DW_FORM_ref4
449 #CHECK: - Attribute: DW_AT_external
450 #CHECK: Form: DW_FORM_flag_present
451 #CHECK: - Code: 0x00000005
452 #CHECK: Tag: DW_TAG_formal_parameter
453 #CHECK: Children: DW_CHILDREN_no
455 #CHECK: - Attribute: DW_AT_location
456 #CHECK: Form: DW_FORM_exprloc
457 #CHECK: - Attribute: DW_AT_name
458 #CHECK: Form: DW_FORM_strp
459 #CHECK: - Attribute: DW_AT_decl_file
460 #CHECK: Form: DW_FORM_data1
461 #CHECK: - Attribute: DW_AT_decl_line
462 #CHECK: Form: DW_FORM_data1
463 #CHECK: - Attribute: DW_AT_type
464 #CHECK: Form: DW_FORM_ref4
465 #CHECK: - Code: 0x00000006
466 #CHECK: Tag: DW_TAG_variable
467 #CHECK: Children: DW_CHILDREN_no
469 #CHECK: - Attribute: DW_AT_location
470 #CHECK: Form: DW_FORM_exprloc
471 #CHECK: - Attribute: DW_AT_name
472 #CHECK: Form: DW_FORM_strp
473 #CHECK: - Attribute: DW_AT_decl_file
474 #CHECK: Form: DW_FORM_data1
475 #CHECK: - Attribute: DW_AT_decl_line
476 #CHECK: Form: DW_FORM_data1
477 #CHECK: - Attribute: DW_AT_type
478 #CHECK: Form: DW_FORM_ref4
479 #CHECK: - Code: 0x00000007
480 #CHECK: Tag: DW_TAG_const_type
481 #CHECK: Children: DW_CHILDREN_no
483 #CHECK: - Attribute: DW_AT_type
484 #CHECK: Form: DW_FORM_ref4