mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
gc_init now gets an argument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13816 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6623cffb6a
commit
56fff59841
@ -1,7 +1,7 @@
|
||||
implementation
|
||||
|
||||
declare sbyte* %llvm_gc_allocate(uint)
|
||||
declare void %llvm_gc_initialize()
|
||||
declare void %llvm_gc_initialize(uint)
|
||||
|
||||
declare void %llvm.gcroot(sbyte**, sbyte*)
|
||||
declare void %llvm.gcwrite(sbyte*, sbyte**)
|
||||
@ -11,7 +11,7 @@ entry:
|
||||
%A = alloca sbyte*
|
||||
%B = alloca sbyte**
|
||||
|
||||
call void %llvm_gc_initialize()
|
||||
call void %llvm_gc_initialize(uint 1048576) ; Start with 1MB heap
|
||||
|
||||
;; void *A;
|
||||
call void %llvm.gcroot(sbyte** %A, sbyte* null)
|
||||
|
Loading…
Reference in New Issue
Block a user