forked from llvm/llvm-project
- Notifications
You must be signed in to change notification settings - Fork 339
/
Copy pathobjc-swift-mixed-imageinfo-macho.ll
46 lines (38 loc) · 1.85 KB
/
objc-swift-mixed-imageinfo-macho.ll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
; RUN: llc -mtriple x86_64-apple-ios -filetype asm -o - %s | FileCheck %s
; REQUIRES: x86-registered-target
; It checks whether the backend generates IMAGE_INFO from Swift ABI version + major + minor + "Objective-C Garbage Collection".
targettriple = "x86_64-apple-macosx10.15.0"
@llvm.used = appendingglobal [1 x i8*] [i8*bitcast (i16*@__swift_reflection_versiontoi8*)], section"llvm.metadata", align8
@__swift_reflection_version = linkonce_odrhiddenconstanti163
definei32@main(i32%0, i8**%1) #0 {
%3 = bitcasti8**%1toi8*
reti320
}
attributes #0 = { "frame-pointer"="all""target-cpu"="penryn""target-features"="+cx16,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" }
!swift.module.flags = !{!0}
!llvm.linker.options = !{!1, !2, !3}
!llvm.asan.globals = !{!4}
!llvm.module.flags = !{!5, !6, !7, !8, !9, !10, !11, !12, !13, !14, !15, !16}
!llvm.ident = !{!17}
!0 = !{!"standard-library", i1false}
!1 = !{!"-lswiftSwiftOnoneSupport"}
!2 = !{!"-lswiftCore"}
!3 = !{!"-lobjc"}
!4 = !{[1 x i8*]* @llvm.used, null, null, i1false, i1true}
!5 = !{i322, !"SDK Version", [2 x i32] [i3210, i3215]}
!6 = !{i321, !"Objective-C Version", i322}
!7 = !{i321, !"Objective-C Image Info Version", i320}
!8 = !{i321, !"Objective-C Image Info Section", !"__DATA,__objc_imageinfo,regular,no_dead_strip"}
!9 = !{i321, !"Objective-C Garbage Collection", i80}
!10 = !{i321, !"Objective-C Class Properties", i3264}
!11 = !{i321, !"wchar_size", i324}
!12 = !{i327, !"PIC Level", i322}
!13 = !{i321, !"Swift Version", i327}
!14 = !{i321, !"Swift ABI Version", i327}
!15 = !{i321, !"Swift Major Version", i85}
!16 = !{i321, !"Swift Minor Version", i81}
!17 = !{!"Apple clang version 11.0.0 (clang-1100.0.33.12)"}
; CHECK: .section __DATA,__objc_imageinfo,regular,no_dead_strip
; CHECK: L_OBJC_IMAGE_INFO:
; CHECK: .long 0
; CHECK: .long 83953472