mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-24 21:42:54 +02:00
0ba5a45ed3
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. llvm-svn: 254174
15 lines
314 B
LLVM
15 lines
314 B
LLVM
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
|
|
; RUN: --plugin-opt=emit-llvm \
|
|
; RUN: -shared %t.o -o %t2.o
|
|
; RUN: llvm-dis %t2.o -o - | FileCheck %s
|
|
|
|
@a = internal unnamed_addr constant i8 42
|
|
|
|
define i8* @f() {
|
|
ret i8* @a
|
|
}
|
|
|
|
; CHECK: @a = internal unnamed_addr constant i8 42
|