llvm-6502/test/ExecutionEngine/OrcLazy/anonymous_globals.ll
Lang Hames 2ae6c65416 [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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234707 91177308-0d34-0410-b5e6-96231b3b80d8
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
}