remove some untested function extra/llvm
parent
f2b4b9236a
commit
f55d83a84e
|
@ -5,7 +5,7 @@ quotations sequences specialized-arrays.alien ;
|
||||||
IN: llvm
|
IN: llvm
|
||||||
|
|
||||||
: llvm-throw ( char** -- )
|
: llvm-throw ( char** -- )
|
||||||
*void* [ alien>string ] [ LLVMDisposeMessage ] bi throw ;
|
[ alien>string ] [ LLVMDisposeMessage ] bi throw ;
|
||||||
|
|
||||||
DISPOSABLE-CENTRAL: module
|
DISPOSABLE-CENTRAL: module
|
||||||
CENTRAL: function
|
CENTRAL: function
|
||||||
|
@ -76,10 +76,4 @@ M: LLVMExecutionEngine dispose* value>> LLVMDisposeExecutionEngine ;
|
||||||
: global>pointer ( value -- alien ) engine value>> swap LLVMGetPointerToGlobal ;
|
: global>pointer ( value -- alien ) engine value>> swap LLVMGetPointerToGlobal ;
|
||||||
|
|
||||||
: find-function ( name -- fn )
|
: find-function ( name -- fn )
|
||||||
engine value>> swap f <void*> [ LLVMFindFunction drop ] keep *void* ;
|
engine value>> swap f <void*> [ LLVMFindFunction drop ] keep *void* ;
|
||||||
|
|
||||||
: llvm-int ( n -- Value )
|
|
||||||
32 LLVMIntType swap 1 LLVMCreateGenericValueOfInt ;
|
|
||||||
|
|
||||||
: prepare-args ( function seq -- f numargs args )
|
|
||||||
over LLVMCountParams swap [ llvm-int ] map f suffix >void*-array ;
|
|
Loading…
Reference in New Issue