a0cacb6054
Summary: The change is to fix conflict value for metadata "Objective-C Garbage Collection" in the mix of swift and Objective-C bitcode. The purpose is to provide the support of LTO for swift and Objective-C mixed project. Reviewers: rjmccall, ahatanak, steven_wu Reviewed By: rjmccall, steven_wu Subscribers: manmanren, mehdi_amini, hiraditya, dexonsmith, llvm-commits, jinlin Tags: #llvm Differential Revision: https://reviews.llvm.org/D71219
22 lines
832 B
LLVM
22 lines
832 B
LLVM
; RUN: llvm-as %s -o - | llvm-dis - | FileCheck %s
|
|
|
|
; The IRUpgrader turns a i32 type "Objective-C Garbage Collection"
|
|
; into i8 value.
|
|
|
|
target triple = "x86_64-apple-macosx10.15.0"
|
|
|
|
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7}
|
|
!llvm.ident = !{!8}
|
|
|
|
!0 = !{i32 2, !"SDK Version", [2 x i32] [i32 10, i32 15]}
|
|
!1 = !{i32 1, !"Objective-C Version", i32 2}
|
|
!2 = !{i32 1, !"Objective-C Image Info Version", i32 0}
|
|
!3 = !{i32 1, !"Objective-C Image Info Section", !"__DATA,__objc_imageinfo,regular,no_dead_strip"}
|
|
!4 = !{i32 1, !"Objective-C Garbage Collection", i32 0}
|
|
!5 = !{i32 1, !"Objective-C Class Properties", i32 64}
|
|
!6 = !{i32 1, !"wchar_size", i32 4}
|
|
!7 = !{i32 7, !"PIC Level", i32 2}
|
|
!8 = !{!"Apple clang version 11.0.0 (clang-1100.0.33.12)"}
|
|
|
|
; CHECK: !{{[0-9]+}} = !{i32 1, !"Objective-C Garbage Collection", i8 0}
|