xref: /llvm-project/llvm/test/tools/dsymutil/Inputs/swift-interface.s (revision 71a13675dad588712094fb09c655570974f98540)
1##; Generated from the following manually stripped empty Swift program:
2##;
3##; target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4##; target triple = "x86_64-apple-macosx10.9.0"
5##;
6##; @__swift_reflection_version = linkonce_odr hidden constant i16 3
7##; @llvm.used = appending global [1 x i8*] [i8* bitcast (i16* @__swift_reflection_version to i8*)], section "llvm.metadata", align 8
8##;
9##; define i32 @main(i32, i8**) !dbg !29 {
10##; entry:
11##;   %2 = bitcast i8** %1 to i8*
12##;   ret i32 0, !dbg !35
13##; }
14##;
15##; !llvm.dbg.cu = !{!0}
16##; !swift.module.flags = !{!14}
17##; !llvm.module.flags = !{!20, !21, !24}
18##;
19##; !0 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !1, isOptimized: false, runtimeVersion: 5, emissionKind: FullDebug, enums: !2, imports: !3, sysroot: "/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk")
20##; !1 = !DIFile(filename: "ParseableInterfaceImports.swift", directory: "/")
21##; !2 = !{}
22##; !3 = !{!4, !6, !8, !10}
23##; !4 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !5, file: !1)
24##; !5 = !DIModule(scope: null, name: "Foo", includePath: "/Foo/x86_64.swiftinterface")
25##; !6 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !7, file: !1)
26##; !7 = !DIModule(scope: null, name: "Swift", includePath: "/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/Swift.swiftmodule/x86_64.swiftinterface")
27##; !8 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !9, file: !1)
28##; !9 = !DIModule(scope: null, name: "Foundation", includePath: "/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/Foundation.swiftmodule")
29##; !10 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !11, file: !1)
30##; !11 = !DIModule(scope: null, name: "_Concurrency", includePath: "/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/_Concurrency.swiftmodule/x86_64-apple-macos.swiftinterface")
31##; !14 = !{!"standard-library", i1 false}
32##; !20 = !{i32 2, !"Dwarf Version", i32 4}
33##; !21 = !{i32 2, !"Debug Info Version", i32 3}
34##; !24 = !{i32 1, !"Swift Version", i32 7}
35##; !29 = distinct !DISubprogram(name: "main", linkageName: "main", scope: !5, file: !1, line: 1, type: !30, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
36##; !30 = !DISubroutineType(types: !31)
37##; !31 = !{}
38##; !35 = !DILocation(line: 0, scope: !36)
39##; !36 = !DILexicalBlockFile(scope: !29, file: !37, discriminator: 0)
40##; !37 = !DIFile(filename: "<compiler-generated>", directory: "")
41
42	.section	__TEXT,__text,regular,pure_instructions
43	.macosx_version_min 10, 9
44	.globl	_main                           ## -- Begin function main
45	.p2align	4, 0x90
46_main:                                  ## @main
47Lfunc_begin0:
48	.file	1 "/" "ParseableInterfaceImports.swift"
49	.loc	1 0 0                           ## ParseableInterfaceImports.swift:0:0
50	.cfi_startproc
51## %bb.0:                               ## %entry
52	xorl	%eax, %eax
53	retq
54Ltmp0:
55Lfunc_end0:
56	.cfi_endproc
57                                        ## -- End function
58	.private_extern	___swift_reflection_version ## @__swift_reflection_version
59	.section	__TEXT,__const
60	.globl	___swift_reflection_version
61	.weak_definition	___swift_reflection_version
62	.p2align	1, 0x0
63___swift_reflection_version:
64	.short	3                               ## 0x3
65
66	.no_dead_strip	___swift_reflection_version
67	.section	__DWARF,__debug_abbrev,regular,debug
68Lsection_abbrev:
69	.byte	1                               ## Abbreviation Code
70	.byte	17                              ## DW_TAG_compile_unit
71	.byte	1                               ## DW_CHILDREN_yes
72	.byte	37                              ## DW_AT_producer
73	.byte	14                              ## DW_FORM_strp
74	.byte	19                              ## DW_AT_language
75	.byte	5                               ## DW_FORM_data2
76	.byte	3                               ## DW_AT_name
77	.byte	14                              ## DW_FORM_strp
78	.ascii	"\202|"                         ## DW_AT_LLVM_sysroot
79	.byte	14                              ## DW_FORM_strp
80	.byte	16                              ## DW_AT_stmt_list
81	.byte	23                              ## DW_FORM_sec_offset
82	.byte	27                              ## DW_AT_comp_dir
83	.byte	14                              ## DW_FORM_strp
84	.ascii	"\345\177"                      ## DW_AT_APPLE_major_runtime_vers
85	.byte	11                              ## DW_FORM_data1
86	.byte	17                              ## DW_AT_low_pc
87	.byte	1                               ## DW_FORM_addr
88	.byte	18                              ## DW_AT_high_pc
89	.byte	6                               ## DW_FORM_data4
90	.byte	0                               ## EOM(1)
91	.byte	0                               ## EOM(2)
92	.byte	2                               ## Abbreviation Code
93	.byte	30                              ## DW_TAG_module
94	.byte	1                               ## DW_CHILDREN_yes
95	.byte	3                               ## DW_AT_name
96	.byte	14                              ## DW_FORM_strp
97	.ascii	"\200|"                         ## DW_AT_LLVM_include_path
98	.byte	14                              ## DW_FORM_strp
99	.byte	0                               ## EOM(1)
100	.byte	0                               ## EOM(2)
101	.byte	3                               ## Abbreviation Code
102	.byte	46                              ## DW_TAG_subprogram
103	.byte	0                               ## DW_CHILDREN_no
104	.byte	17                              ## DW_AT_low_pc
105	.byte	1                               ## DW_FORM_addr
106	.byte	18                              ## DW_AT_high_pc
107	.byte	6                               ## DW_FORM_data4
108	.ascii	"\347\177"                      ## DW_AT_APPLE_omit_frame_ptr
109	.byte	25                              ## DW_FORM_flag_present
110	.byte	64                              ## DW_AT_frame_base
111	.byte	24                              ## DW_FORM_exprloc
112	.byte	110                             ## DW_AT_linkage_name
113	.byte	14                              ## DW_FORM_strp
114	.byte	3                               ## DW_AT_name
115	.byte	14                              ## DW_FORM_strp
116	.byte	58                              ## DW_AT_decl_file
117	.byte	11                              ## DW_FORM_data1
118	.byte	59                              ## DW_AT_decl_line
119	.byte	11                              ## DW_FORM_data1
120	.byte	63                              ## DW_AT_external
121	.byte	25                              ## DW_FORM_flag_present
122	.byte	0                               ## EOM(1)
123	.byte	0                               ## EOM(2)
124	.byte	4                               ## Abbreviation Code
125	.byte	58                              ## DW_TAG_imported_module
126	.byte	0                               ## DW_CHILDREN_no
127	.byte	24                              ## DW_AT_import
128	.byte	19                              ## DW_FORM_ref4
129	.byte	0                               ## EOM(1)
130	.byte	0                               ## EOM(2)
131	.byte	5                               ## Abbreviation Code
132	.byte	30                              ## DW_TAG_module
133	.byte	0                               ## DW_CHILDREN_no
134	.byte	3                               ## DW_AT_name
135	.byte	14                              ## DW_FORM_strp
136	.ascii	"\200|"                         ## DW_AT_LLVM_include_path
137	.byte	14                              ## DW_FORM_strp
138	.byte	0                               ## EOM(1)
139	.byte	0                               ## EOM(2)
140	.byte	0                               ## EOM(3)
141	.section	__DWARF,__debug_info,regular,debug
142Lsection_info:
143Lcu_begin0:
144.set Lset0, Ldebug_info_end0-Ldebug_info_start0 ## Length of Unit
145	.long	Lset0
146Ldebug_info_start0:
147	.short	4                               ## DWARF version number
148.set Lset1, Lsection_abbrev-Lsection_abbrev ## Offset Into Abbrev. Section
149	.long	Lset1
150	.byte	8                               ## Address Size (in bytes)
151	.byte	1                               ## Abbrev [1] 0xb:0x77 DW_TAG_compile_unit
152	.long	0                               ## DW_AT_producer
153	.short	30                              ## DW_AT_language
154	.long	1                               ## DW_AT_name
155	.long	33                              ## DW_AT_LLVM_sysroot
156.set Lset2, Lline_table_start0-Lsection_line ## DW_AT_stmt_list
157	.long	Lset2
158	.long	79                              ## DW_AT_comp_dir
159	.byte	5                               ## DW_AT_APPLE_major_runtime_vers
160	.quad	Lfunc_begin0                    ## DW_AT_low_pc
161.set Lset3, Lfunc_end0-Lfunc_begin0     ## DW_AT_high_pc
162	.long	Lset3
163	.byte	2                               ## Abbrev [2] 0x2f:0x23 DW_TAG_module
164	.long	81                              ## DW_AT_name
165	.long	85                              ## DW_AT_LLVM_include_path
166	.byte	3                               ## Abbrev [3] 0x38:0x19 DW_TAG_subprogram
167	.quad	Lfunc_begin0                    ## DW_AT_low_pc
168.set Lset4, Lfunc_end0-Lfunc_begin0     ## DW_AT_high_pc
169	.long	Lset4
170                                        ## DW_AT_APPLE_omit_frame_ptr
171	.byte	1                               ## DW_AT_frame_base
172	.byte	87
173	.long	112                             ## DW_AT_linkage_name
174	.long	112                             ## DW_AT_name
175	.byte	1                               ## DW_AT_decl_file
176	.byte	1                               ## DW_AT_decl_line
177                                        ## DW_AT_external
178	.byte	0                               ## End Of Children Mark
179	.byte	4                               ## Abbrev [4] 0x52:0x5 DW_TAG_imported_module
180	.long	47                              ## DW_AT_import
181	.byte	5                               ## Abbrev [5] 0x57:0x9 DW_TAG_module
182	.long	117                             ## DW_AT_name
183	.long	123                             ## DW_AT_LLVM_include_path
184	.byte	4                               ## Abbrev [4] 0x60:0x5 DW_TAG_imported_module
185	.long	87                              ## DW_AT_import
186	.byte	5                               ## Abbrev [5] 0x65:0x9 DW_TAG_module
187	.long	209                             ## DW_AT_name
188	.long	220                             ## DW_AT_LLVM_include_path
189	.byte	4                               ## Abbrev [4] 0x6e:0x5 DW_TAG_imported_module
190	.long	101                             ## DW_AT_import
191	.byte	5                               ## Abbrev [5] 0x73:0x9 DW_TAG_module
192	.long	289                             ## DW_AT_name
193	.long	302                             ## DW_AT_LLVM_include_path
194	.byte	4                               ## Abbrev [4] 0x7c:0x5 DW_TAG_imported_module
195	.long	115                             ## DW_AT_import
196	.byte	0                               ## End Of Children Mark
197Ldebug_info_end0:
198	.section	__DWARF,__debug_str,regular,debug
199Linfo_string:
200	.byte	0                               ## string offset=0
201	.asciz	"ParseableInterfaceImports.swift" ## string offset=1
202	.asciz	"/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk" ## string offset=33
203	.asciz	"/"                             ## string offset=79
204	.asciz	"Foo"                           ## string offset=81
205	.asciz	"/Foo/x86_64.swiftinterface"    ## string offset=85
206	.asciz	"main"                          ## string offset=112
207	.asciz	"Swift"                         ## string offset=117
208	.asciz	"/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/Swift.swiftmodule/x86_64.swiftinterface" ## string offset=123
209	.asciz	"Foundation"                    ## string offset=209
210	.asciz	"/Xcode.app/Contents/Developer/SDKs/MacOSX.sdk/Foundation.swiftmodule" ## string offset=220
211	.asciz	"_Concurrency"                  ## string offset=289
212	.asciz	"/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/_Concurrency.swiftmodule/x86_64-apple-macos.swiftinterface" ## string offset=302
213	.section	__DWARF,__apple_names,regular,debug
214Lnames_begin:
215	.long	1212240712                      ## Header Magic
216	.short	1                               ## Header Version
217	.short	0                               ## Header Hash Function
218	.long	1                               ## Header Bucket Count
219	.long	1                               ## Header Hash Count
220	.long	12                              ## Header Data Length
221	.long	0                               ## HeaderData Die Offset Base
222	.long	1                               ## HeaderData Atom Count
223	.short	1                               ## DW_ATOM_die_offset
224	.short	6                               ## DW_FORM_data4
225	.long	0                               ## Bucket 0
226	.long	2090499946                      ## Hash in Bucket 0
227.set Lset5, LNames0-Lnames_begin        ## Offset in Bucket 0
228	.long	Lset5
229LNames0:
230	.long	112                             ## main
231	.long	1                               ## Num DIEs
232	.long	56
233	.long	0
234	.section	__DWARF,__apple_objc,regular,debug
235Lobjc_begin:
236	.long	1212240712                      ## Header Magic
237	.short	1                               ## Header Version
238	.short	0                               ## Header Hash Function
239	.long	1                               ## Header Bucket Count
240	.long	0                               ## Header Hash Count
241	.long	12                              ## Header Data Length
242	.long	0                               ## HeaderData Die Offset Base
243	.long	1                               ## HeaderData Atom Count
244	.short	1                               ## DW_ATOM_die_offset
245	.short	6                               ## DW_FORM_data4
246	.long	-1                              ## Bucket 0
247	.section	__DWARF,__apple_namespac,regular,debug
248Lnamespac_begin:
249	.long	1212240712                      ## Header Magic
250	.short	1                               ## Header Version
251	.short	0                               ## Header Hash Function
252	.long	1                               ## Header Bucket Count
253	.long	0                               ## Header Hash Count
254	.long	12                              ## Header Data Length
255	.long	0                               ## HeaderData Die Offset Base
256	.long	1                               ## HeaderData Atom Count
257	.short	1                               ## DW_ATOM_die_offset
258	.short	6                               ## DW_FORM_data4
259	.long	-1                              ## Bucket 0
260	.section	__DWARF,__apple_types,regular,debug
261Ltypes_begin:
262	.long	1212240712                      ## Header Magic
263	.short	1                               ## Header Version
264	.short	0                               ## Header Hash Function
265	.long	1                               ## Header Bucket Count
266	.long	0                               ## Header Hash Count
267	.long	20                              ## Header Data Length
268	.long	0                               ## HeaderData Die Offset Base
269	.long	3                               ## HeaderData Atom Count
270	.short	1                               ## DW_ATOM_die_offset
271	.short	6                               ## DW_FORM_data4
272	.short	3                               ## DW_ATOM_die_tag
273	.short	5                               ## DW_FORM_data2
274	.short	4                               ## DW_ATOM_type_flags
275	.short	11                              ## DW_FORM_data1
276	.long	-1                              ## Bucket 0
277.subsections_via_symbols
278	.section	__DWARF,__debug_line,regular,debug
279Lsection_line:
280Lline_table_start0:
281