mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 05:56:28 +00:00
Test the linker plugin handling of llvm.used.
llvm-svn: 214116
This commit is contained in:
parent
65af793195
commit
f8cbb8d0a2
@ -3,7 +3,7 @@
|
||||
; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
|
||||
; RUN: --plugin-opt=emit-llvm \
|
||||
; RUN: -shared %t.o -o %t2.o
|
||||
; RUN: llvm-dis %t2.o -o /dev/null
|
||||
; RUN: llvm-dis %t2.o -o - | FileCheck %s
|
||||
|
||||
; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \
|
||||
; RUN: --plugin-opt=also-emit-llvm \
|
||||
@ -16,3 +16,15 @@
|
||||
; RUN: llvm-dis %t4 -o /dev/null
|
||||
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
||||
; CHECK: define internal void @f()
|
||||
define hidden void @f() {
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK: define hidden void @g()
|
||||
define hidden void @g() {
|
||||
ret void
|
||||
}
|
||||
|
||||
@llvm.used = appending global [1 x i8*] [ i8* bitcast (void ()* @g to i8*)]
|
||||
|
Loading…
Reference in New Issue
Block a user