mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 10:17:36 +00:00
89e5e1dadb
(Resubmitting after fixing missing file issue) With the changes in r263275, there are now more than just functions in the summary. Completed the renaming of data structures (started in r263275) to reflect the wider scope. In particular, changed the FunctionIndex* data structures to ModuleIndex*, and renamed related variables and comments. Also renamed the files to reflect the changes. A companion clang patch will immediately succeed this patch to reflect this renaming. llvm-svn: 263513
18 lines
459 B
LLVM
18 lines
459 B
LLVM
; RUN: llvm-as -module-summary %s -o %t1.bc
|
|
; RUN: llvm-as -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 linkonce_odr 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
|
|
}
|