mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-12 15:30:46 +00:00
30e6c88594
I found these while trying to get a prototype to bootstrap. They cover things like * Handling of non linker visible stuff (append, available_externally) * Type merging * Alias to dropped globals * Dropping linkage when converting to a declaration. These should hopefully be generally useful for anyone refactoring the plugin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254174 91177308-0d34-0410-b5e6-96231b3b80d8
24 lines
518 B
LLVM
24 lines
518 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
; RUN: %gold -shared -o %t2.bc -plugin %llvmshlibdir/LLVMgold.so %t.o -plugin-opt=emit-llvm
|
|
; RUN: llvm-dis %t2.bc -o - | FileCheck %s
|
|
|
|
@bar = alias void (), void ()* @zed
|
|
define void @foo() {
|
|
call void @bar()
|
|
ret void
|
|
}
|
|
define void @zed() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: @bar = alias void (), void ()* @zed
|
|
|
|
; CHECK: define void @foo() {
|
|
; CHECK-NEXT: call void @bar()
|
|
; CHECK-NEXT: ret void
|
|
; CHECK-NEXT: }
|
|
|
|
; CHECK: define void @zed() {
|
|
; CHECK-NEXT: ret void
|
|
; CHECK-NEXT: }
|