mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
857b9f0901
Summary: The function importer already decided what symbols need to be pulled in. Also these magically added ones will not be in the export list for the source module, which can confuse the internalizer for instance. Reviewers: tejohnson, rafael Subscribers: joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D19096 From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266948
18 lines
459 B
LLVM
18 lines
459 B
LLVM
; RUN: opt -module-summary %s -o %t1.bc
|
|
; RUN: opt -module-summary %p/Inputs/funcimport2.ll -o %t2.bc
|
|
; RUN: llvm-lto -thinlto -o %t3 %t1.bc %t2.bc
|
|
; RUN: llvm-link -import=bar:%t2.bc %t1.bc -summary-index=%t3.thinlto.bc -S | FileCheck %s
|
|
|
|
; CHECK: define available_externally hidden void @foo() {
|
|
define available_externally hidden void @foo() {
|
|
ret void
|
|
}
|
|
|
|
declare void @bar()
|
|
|
|
define void @caller() {
|
|
call void @bar()
|
|
call void @foo()
|
|
ret void
|
|
}
|