1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 21:42:54 +02:00
llvm-mirror/test/tools/gold/coff.ll
Rafael Espindola 6f709341b7 Remember the unmangled name in the plugin.
This allows it to work with non trivial manglings like the one in COFF.

Amusingly, this can be tested with gold, as emit-llvm causes the plugin to
exit before any COFF is generated.

llvm-svn: 223790
2014-12-09 16:50:57 +00:00

23 lines
422 B
LLVM

; RUN: llvm-as %s -o %t.o
; RUN: ld -plugin %llvmshlibdir/LLVMgold.so -plugin-opt=emit-llvm \
; RUN: -shared %t.o -o %t2.o
; RUN: llvm-dis %t2.o -o - | FileCheck %s
target datalayout = "m:w"
; CHECK: define void @f() {
define void @f() {
ret void
}
; CHECK: define internal void @g() {
define hidden void @g() {
ret void
}
; CHECK: define internal void @h() {
define linkonce_odr void @h() {
ret void
}