1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/ExecutionEngine/OrcLazy/anonymous_globals.ll
Lang Hames 2846a6ae44 [Orc] During module partitioning, rename anonymous and asm-private globals.
If they're not (re)named, these globals will fail to resolve when the
partitioned modules are linked.

llvm-svn: 234707
2015-04-12 20:05:51 +00:00

19 lines
269 B
LLVM

; RUN: lli -jit-kind=orc-lazy %s
define private void @0() {
entry:
ret void
}
define private void @"\01L_foo"() {
entry:
ret void
}
define i32 @main(i32 %argc, i8** nocapture readnone %argv) {
entry:
call void @0()
tail call void @"\01L_foo"()
ret i32 0
}