mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
f214fe8b32
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223790 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
422 B
LLVM
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
|
|
}
|