mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-28 22:42:52 +01:00
edbfece273
providing a misleading facility. It's used once in the MIPS backend and hardcoded as "\t.globl\t" everywhere else. llvm-svn: 45676
15 lines
372 B
LLVM
15 lines
372 B
LLVM
; RUN: llvm-as < %s | llc -asm-verbose | grep {frame size} | grep -v 0x0
|
|
|
|
declare void @llvm.gcroot(i8** %value, i8* %tag)
|
|
declare void @g() gc "ocaml"
|
|
|
|
define void @f(i8* %arg.0, void()* %arg.1) gc "ocaml" {
|
|
entry:
|
|
%gcroot.0 = alloca i8*
|
|
call void @llvm.gcroot(i8** %gcroot.0, i8* null)
|
|
store i8* %arg.0, i8** %gcroot.0
|
|
call void @g()
|
|
call void %arg.1()
|
|
ret void
|
|
}
|