1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Update gc intrinsics to take pointer to object as well as pointer to field.

Patch contributed by Tobias Nurmiranta

llvm-svn: 15094
This commit is contained in:
Chris Lattner 2004-07-22 05:48:38 +00:00
parent 1cae25921d
commit d88c0923db

View File

@ -4,7 +4,7 @@ declare sbyte* %llvm_gc_allocate(uint)
declare void %llvm_gc_initialize(uint)
declare void %llvm.gcroot(sbyte**, sbyte*)
declare void %llvm.gcwrite(sbyte*, sbyte**)
declare void %llvm.gcwrite(sbyte*, sbyte*, sbyte**)
int %main() {
entry:
@ -32,7 +32,7 @@ entry:
;; *B = A;
%B.1 = load sbyte*** %B
%A.1 = load sbyte** %A
call void %llvm.gcwrite(sbyte* %A.1, sbyte** %B.1)
call void %llvm.gcwrite(sbyte* %A.1, sbyte* %B, sbyte** %B.1)
br label %AllocLoop