1 # RUN: yaml2obj %s | obj2yaml | FileCheck %s
16 uuid: B4D48511-37F4-3ED4-AFA7-1683DCE69AC4
48 addr: 0x0000000100000F50
60 addr: 0x0000000100000F84
70 - sectname: __stub_helper
72 addr: 0x0000000100000F8C
84 addr: 0x0000000100000FA6
94 - sectname: __unwind_info
96 addr: 0x0000000100000FB4
103 reserved1: 0x00000000
104 reserved2: 0x00000000
105 reserved3: 0x00000000
118 - sectname: __nl_symbol_ptr
120 addr: 0x0000000100001000
127 reserved1: 0x00000001
128 reserved2: 0x00000000
129 reserved3: 0x00000000
130 - sectname: __la_symbol_ptr
132 addr: 0x0000000100001010
139 reserved1: 0x00000003
140 reserved2: 0x00000000
141 reserved3: 0x00000000
165 - sectname: __debug_line
167 addr: 0x0000000100003000
174 reserved1: 0x00000000
175 reserved2: 0x00000000
176 reserved3: 0x00000000
177 - sectname: __debug_pubnames
179 addr: 0x0000000100003045
186 reserved1: 0x00000000
187 reserved2: 0x00000000
188 reserved3: 0x00000000
189 - sectname: __debug_pubtypes
191 addr: 0x0000000100003060
198 reserved1: 0x00000000
199 reserved2: 0x00000000
200 reserved3: 0x00000000
201 - sectname: __debug_aranges
203 addr: 0x0000000100003083
210 reserved1: 0x00000000
211 reserved2: 0x00000000
212 reserved3: 0x00000000
213 - sectname: __debug_info
215 addr: 0x00000001000030B3
222 reserved1: 0x00000000
223 reserved2: 0x00000000
224 reserved3: 0x00000000
225 - sectname: __debug_abbrev
227 addr: 0x000000010000312C
234 reserved1: 0x00000000
235 reserved2: 0x00000000
236 reserved3: 0x00000000
237 - sectname: __debug_str
239 addr: 0x0000000100003178
246 reserved1: 0x00000000
247 reserved2: 0x00000000
248 reserved3: 0x00000000
249 - sectname: __apple_names
251 addr: 0x0000000100003206
258 reserved1: 0x00000000
259 reserved2: 0x00000000
260 reserved3: 0x00000000
261 - sectname: __apple_namespac
263 addr: 0x0000000100003242
270 reserved1: 0x00000000
271 reserved2: 0x00000000
272 reserved3: 0x00000000
273 - sectname: __apple_types
275 addr: 0x0000000100003266
282 reserved1: 0x00000000
283 reserved2: 0x00000000
284 reserved3: 0x00000000
285 - sectname: __apple_objc
287 addr: 0x00000001000032D8
294 reserved1: 0x00000000
295 reserved2: 0x00000000
296 reserved3: 0x00000000
312 - __mh_execute_header
317 - 'clang version 4.0.0 (trunk 288923) (llvm/trunk 288991)'
319 - /Users/cbieneman/dev/open-source/llvm-build-rel
327 Tag: DW_TAG_compile_unit
328 Children: DW_CHILDREN_yes
330 - Attribute: DW_AT_producer
332 - Attribute: DW_AT_language
334 - Attribute: DW_AT_name
336 - Attribute: DW_AT_stmt_list
337 Form: DW_FORM_sec_offset
338 - Attribute: DW_AT_comp_dir
340 - Attribute: DW_AT_low_pc
342 - Attribute: DW_AT_high_pc
345 Tag: DW_TAG_subprogram
346 Children: DW_CHILDREN_yes
348 - Attribute: DW_AT_low_pc
350 - Attribute: DW_AT_high_pc
352 - Attribute: DW_AT_frame_base
353 Form: DW_FORM_exprloc
354 - Attribute: DW_AT_name
356 - Attribute: DW_AT_decl_file
358 - Attribute: DW_AT_decl_line
360 - Attribute: DW_AT_prototyped
361 Form: DW_FORM_flag_present
362 - Attribute: DW_AT_type
364 - Attribute: DW_AT_external
365 Form: DW_FORM_flag_present
367 Tag: DW_TAG_formal_parameter
368 Children: DW_CHILDREN_no
370 - Attribute: DW_AT_location
371 Form: DW_FORM_exprloc
372 - Attribute: DW_AT_name
374 - Attribute: DW_AT_decl_file
376 - Attribute: DW_AT_decl_line
378 - Attribute: DW_AT_type
381 Tag: DW_TAG_base_type
382 Children: DW_CHILDREN_no
384 - Attribute: DW_AT_name
386 - Attribute: DW_AT_encoding
388 - Attribute: DW_AT_byte_size
391 Tag: DW_TAG_pointer_type
392 Children: DW_CHILDREN_no
394 - Attribute: DW_AT_type
404 - Address: 0x0000000100000F50
413 - DieOffset: 0x0000002A
422 - DieOffset: 0x00000060
424 - DieOffset: 0x00000071
433 - AbbrCode: 0x00000001
435 - Value: 0x0000000000000001
436 - Value: 0x000000000000000C
437 - Value: 0x0000000000000038
438 - Value: 0x0000000000000000
439 - Value: 0x0000000000000046
440 - Value: 0x0000000100000F50
441 - Value: 0x0000000000000034
442 - AbbrCode: 0x00000002
444 - Value: 0x0000000100000F50
445 - Value: 0x0000000000000034
446 - Value: 0x0000000000000001
449 - Value: 0x0000000000000076
450 - Value: 0x0000000000000001
451 - Value: 0x0000000000000003
452 - Value: 0x0000000000000001
453 - Value: 0x0000000000000060
454 - Value: 0x0000000000000001
455 - AbbrCode: 0x00000003
457 - Value: 0x0000000000000002
461 - Value: 0x000000000000007B
462 - Value: 0x0000000000000001
463 - Value: 0x0000000000000003
464 - Value: 0x0000000000000060
465 - AbbrCode: 0x00000003
467 - Value: 0x0000000000000002
471 - Value: 0x0000000000000080
472 - Value: 0x0000000000000001
473 - Value: 0x0000000000000003
474 - Value: 0x0000000000000067
475 - AbbrCode: 0x00000000
477 - AbbrCode: 0x00000004
479 - Value: 0x0000000000000085
480 - Value: 0x0000000000000005
481 - Value: 0x0000000000000004
482 - AbbrCode: 0x00000005
484 - Value: 0x000000000000006C
485 - AbbrCode: 0x00000005
487 - Value: 0x0000000000000071
488 - AbbrCode: 0x00000004
490 - Value: 0x0000000000000089
491 - Value: 0x0000000000000006
492 - Value: 0x0000000000000001
493 - AbbrCode: 0x00000000
505 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
508 - Name: hello_world.c
513 - Opcode: DW_LNS_extended_op
515 SubOpcode: DW_LNE_set_address
519 - Opcode: DW_LNS_set_column
521 - Opcode: DW_LNS_set_prologue_end
523 - Opcode: DW_LNS_const_add_pc
529 - Opcode: DW_LNS_advance_pc
531 - Opcode: DW_LNS_extended_op
533 SubOpcode: DW_LNE_end_sequence
539 #CHECK: TotalLength: 65
541 #CHECK: PrologueLength: 36
542 #CHECK: MinInstLength: 1
543 #CHECK: DefaultIsStmt: 1
544 #CHECK: LineBase: 251
545 #CHECK: LineRange: 14
546 #CHECK: OpcodeBase: 13
547 #CHECK: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
550 #CHECK: - Name: hello_world.c
555 #CHECK: - Opcode: DW_LNS_extended_op
557 #CHECK: SubOpcode: DW_LNE_set_address
558 #CHECK: Data: 4294971216
559 #CHECK: - Opcode: 0x14
561 #CHECK: - Opcode: DW_LNS_set_column
563 #CHECK: - Opcode: DW_LNS_set_prologue_end
565 #CHECK: - Opcode: DW_LNS_const_add_pc
567 #CHECK: - Opcode: 0xBB
569 #CHECK: - Opcode: 0xBB
571 #CHECK: - Opcode: DW_LNS_advance_pc
573 #CHECK: - Opcode: DW_LNS_extended_op
575 #CHECK: SubOpcode: DW_LNE_end_sequence