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
328 Tag: DW_TAG_compile_unit
329 Children: DW_CHILDREN_yes
331 - Attribute: DW_AT_producer
333 - Attribute: DW_AT_language
335 - Attribute: DW_AT_name
337 - Attribute: DW_AT_stmt_list
338 Form: DW_FORM_sec_offset
339 - Attribute: DW_AT_comp_dir
341 - Attribute: DW_AT_low_pc
343 - Attribute: DW_AT_high_pc
346 Tag: DW_TAG_subprogram
347 Children: DW_CHILDREN_yes
349 - Attribute: DW_AT_low_pc
351 - Attribute: DW_AT_high_pc
353 - Attribute: DW_AT_frame_base
354 Form: DW_FORM_exprloc
355 - Attribute: DW_AT_name
357 - Attribute: DW_AT_decl_file
359 - Attribute: DW_AT_decl_line
361 - Attribute: DW_AT_prototyped
362 Form: DW_FORM_flag_present
363 - Attribute: DW_AT_type
365 - Attribute: DW_AT_external
366 Form: DW_FORM_flag_present
368 Tag: DW_TAG_formal_parameter
369 Children: DW_CHILDREN_no
371 - Attribute: DW_AT_location
372 Form: DW_FORM_exprloc
373 - Attribute: DW_AT_name
375 - Attribute: DW_AT_decl_file
377 - Attribute: DW_AT_decl_line
379 - Attribute: DW_AT_type
382 Tag: DW_TAG_base_type
383 Children: DW_CHILDREN_no
385 - Attribute: DW_AT_name
387 - Attribute: DW_AT_encoding
389 - Attribute: DW_AT_byte_size
392 Tag: DW_TAG_pointer_type
393 Children: DW_CHILDREN_no
395 - Attribute: DW_AT_type
402 SegmentSelectorSize: 0
404 - Address: 0x0000000100000F50
412 - DieOffset: 0x0000002A
420 - DieOffset: 0x00000060
422 - DieOffset: 0x00000071
430 - AbbrCode: 0x00000001
432 - Value: 0x0000000000000001
433 - Value: 0x000000000000000C
434 - Value: 0x0000000000000038
435 - Value: 0x0000000000000000
436 - Value: 0x0000000000000046
437 - Value: 0x0000000100000F50
438 - Value: 0x0000000000000034
439 - AbbrCode: 0x00000002
441 - Value: 0x0000000100000F50
442 - Value: 0x0000000000000034
443 - Value: 0x0000000000000001
446 - Value: 0x0000000000000076
447 - Value: 0x0000000000000001
448 - Value: 0x0000000000000003
449 - Value: 0x0000000000000001
450 - Value: 0x0000000000000060
451 - Value: 0x0000000000000001
452 - AbbrCode: 0x00000003
454 - Value: 0x0000000000000002
458 - Value: 0x000000000000007B
459 - Value: 0x0000000000000001
460 - Value: 0x0000000000000003
461 - Value: 0x0000000000000060
462 - AbbrCode: 0x00000003
464 - Value: 0x0000000000000002
468 - Value: 0x0000000000000080
469 - Value: 0x0000000000000001
470 - Value: 0x0000000000000003
471 - Value: 0x0000000000000067
472 - AbbrCode: 0x00000000
474 - AbbrCode: 0x00000004
476 - Value: 0x0000000000000085
477 - Value: 0x0000000000000005
478 - Value: 0x0000000000000004
479 - AbbrCode: 0x00000005
481 - Value: 0x000000000000006C
482 - AbbrCode: 0x00000005
484 - Value: 0x0000000000000071
485 - AbbrCode: 0x00000004
487 - Value: 0x0000000000000089
488 - Value: 0x0000000000000006
489 - Value: 0x0000000000000001
490 - AbbrCode: 0x00000000
501 StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
503 - Name: hello_world.c
508 - Opcode: DW_LNS_extended_op
510 SubOpcode: DW_LNE_set_address
514 - Opcode: DW_LNS_set_column
516 - Opcode: DW_LNS_set_prologue_end
518 - Opcode: DW_LNS_const_add_pc
524 - Opcode: DW_LNS_advance_pc
526 - Opcode: DW_LNS_extended_op
528 SubOpcode: DW_LNE_end_sequence
533 # CHECK-NEXT: - Length: 65
534 # CHECK-NEXT: Version: 2
535 # CHECK-NEXT: PrologueLength: 36
536 # CHECK-NEXT: MinInstLength: 1
537 # CHECK-NEXT: DefaultIsStmt: 1
538 # CHECK-NEXT: LineBase: 251
539 # CHECK-NEXT: LineRange: 14
540 # CHECK-NEXT: OpcodeBase: 13
541 # CHECK-NEXT: StandardOpcodeLengths: [ 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 ]
543 # CHECK-NEXT: - Name: hello_world.c
544 # CHECK-NEXT: DirIdx: 0
545 # CHECK-NEXT: ModTime: 0
546 # CHECK-NEXT: Length: 0
547 # CHECK-NEXT: Opcodes:
548 # CHECK-NEXT: - Opcode: DW_LNS_extended_op
549 # CHECK-NEXT: ExtLen: 9
550 # CHECK-NEXT: SubOpcode: DW_LNE_set_address
551 # CHECK-NEXT: Data: 4294971216
552 # CHECK-NEXT: - Opcode: 0x14
553 # CHECK-NEXT: Data: 0
554 # CHECK-NEXT: - Opcode: DW_LNS_set_column
555 # CHECK-NEXT: Data: 3
556 # CHECK-NEXT: - Opcode: DW_LNS_set_prologue_end
557 # CHECK-NEXT: Data: 0
558 # CHECK-NEXT: - Opcode: DW_LNS_const_add_pc
559 # CHECK-NEXT: Data: 0
560 # CHECK-NEXT: - Opcode: 0xBB
561 # CHECK-NEXT: Data: 0
562 # CHECK-NEXT: - Opcode: 0xBB
563 # CHECK-NEXT: Data: 0
564 # CHECK-NEXT: - Opcode: DW_LNS_advance_pc
565 # CHECK-NEXT: Data: 11
566 # CHECK-NEXT: - Opcode: DW_LNS_extended_op
567 # CHECK-NEXT: ExtLen: 1
568 # CHECK-NEXT: SubOpcode: DW_LNE_end_sequence
569 # CHECK-NEXT: Data: 0