IN: llvm
: llvm-throw ( char** -- )
- *void* [ alien>string ] [ LLVMDisposeMessage ] bi throw ;
+ [ alien>string ] [ LLVMDisposeMessage ] bi throw ;
DISPOSABLE-CENTRAL: module
CENTRAL: function
: global>pointer ( value -- alien ) engine value>> swap LLVMGetPointerToGlobal ;
: find-function ( name -- fn )
- 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 ;
\ No newline at end of file
+ engine value>> swap f <void*> [ LLVMFindFunction drop ] keep *void* ;
\ No newline at end of file