Fix conflict value for metadata "Objective-C Garbage Collection" in the mix of swift...
authorJin Lin <jinl@uber.com>
Tue, 10 Mar 2020 19:46:40 +0000 (12:46 -0700)
committerJin Lin <jinl@uber.com>
Wed, 11 Mar 2020 20:26:06 +0000 (13:26 -0700)
commita0cacb60549f2346f7addf9205cd32720afc8fb4
treeb708c8b083d5f4d02a9ae51e938a0bcd15f8cf46
parentd2f3e5f204cfb06e1862476ade175ccf0bb7ca0f
Fix conflict value for metadata "Objective-C Garbage Collection" in the mix of swift and Objective-C bitcode

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
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/image-info.m
llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
llvm/lib/IR/AutoUpgrade.cpp
llvm/test/Bitcode/upgrade-garbage-collection-for-objc.ll [new file with mode: 0644]
llvm/test/Bitcode/upgrade-garbage-collection-for-swift.ll [new file with mode: 0644]
llvm/test/Linker/Inputs/empty-objc.ll [new file with mode: 0644]
llvm/test/Linker/empty-swift.ll [new file with mode: 0644]
llvm/test/Object/objc-swift-mixed-imageinfo-macho.ll [new file with mode: 0644]