1 RUN: llvm-dsymutil -o - -oso-prepend-path=%p/.. %p/../Inputs/basic-lto.macho.x86_64 | llvm-dwarfdump - | FileCheck %s
3 CHECK: file format Mach-O 64-bit x86-64
5 CHECK: debug_info contents
9 CHECK: DW_TAG_compile_unit [1] *
10 CHECK: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "Apple LLVM version 6.0 (clang-600.0.39) (based on LLVM 3.5svn)")
11 CHECK: DW_AT_language [DW_FORM_data2] (DW_LANG_C99)
12 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000040] = "basic1.c")
13 CHECK: DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x00000049] = "/Inputs")
14 CHECK: DW_TAG_subprogram [2] *
15 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000051] = "main")
16 CHECK: DW_AT_decl_line [DW_FORM_data1] (23)
17 CHECK: DW_AT_prototyped [DW_FORM_flag] (0x01)
18 CHECK: DW_AT_external [DW_FORM_flag] (0x01)
19 CHECK: DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
20 CHECK: DW_AT_frame_base [DW_FORM_block1] (<0x01> 56 )
21 CHECK: DW_TAG_formal_parameter [3]
22 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000056] = "argc")
23 CHECK: DW_AT_location [DW_FORM_block1] (<0x03> 55 93 04 )
24 CHECK: DW_TAG_formal_parameter [3]
25 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000005b] = "argv")
26 CHECK: DW_AT_location [DW_FORM_block1] (<0x01> 54 )
28 CHECK: DW_TAG_base_type [4]
29 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000060] = "int")
30 CHECK: DW_AT_encoding [DW_FORM_data1] (DW_ATE_signed)
31 CHECK: DW_AT_byte_size [DW_FORM_data1] (0x04)
32 CHECK: DW_TAG_pointer_type [5]
33 CHECK: DW_TAG_pointer_type [5]
34 CHECK: DW_TAG_const_type [6]
35 CHECK: DW_TAG_base_type [4]
36 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000064] = "char")
37 CHECK: DW_AT_encoding [DW_FORM_data1] (DW_ATE_signed_char)
38 CHECK: DW_AT_byte_size [DW_FORM_data1] (0x01)
43 CHECK: DW_TAG_compile_unit [1] *
44 CHECK: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "Apple LLVM version 6.0 (clang-600.0.39) (based on LLVM 3.5svn)")
45 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000069] = "basic2.c")
46 CHECK: DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x00000049] = "/Inputs")
47 CHECK: DW_TAG_variable [7]
48 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000072] = "private_int")
49 CHECK: DW_TAG_variable [7]
50 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000007e] = "baz")
51 CHECK: DW_TAG_subprogram [8] *
52 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000082] = "foo")
53 CHECK: DW_AT_frame_base [DW_FORM_block1] (<0x01> 56 )
54 CHECK: DW_TAG_formal_parameter [9]
55 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000086] = "arg")
56 CHECK: DW_TAG_inlined_subroutine [10]
57 CHECK: DW_AT_call_line [DW_FORM_data1] (20)
59 CHECK: DW_TAG_subprogram [11]
60 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000008a] = "inc")
61 CHECK: DW_AT_inline [DW_FORM_data1] (DW_INL_inlined)
66 CHECK: DW_TAG_compile_unit [1] *
67 CHECK: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000001] = "Apple LLVM version 6.0 (clang-600.0.39) (based on LLVM 3.5svn)")
68 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000008e] = "basic3.c")
69 CHECK: DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x00000049] = "/Inputs")
70 CHECK: DW_TAG_variable [12]
71 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000097] = "val")
72 CHECK: DW_TAG_volatile_type [13]
73 CHECK: DW_TAG_subprogram [8] *
74 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000009b] = "bar")
75 CHECK: DW_AT_frame_base [DW_FORM_block1] (<0x01> 56 )
76 CHECK: DW_TAG_formal_parameter [9]
77 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000086] = "arg")
78 CHECK: DW_TAG_lexical_block [14] *
79 CHECK: DW_TAG_inlined_subroutine [15]
82 CHECK: DW_TAG_subprogram [11]
83 CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000008a] = "inc")