Skip to content

Commit

Permalink
support unnamed call inst.
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolph-miller committed May 25, 2015
1 parent 4069b95 commit 9e9e58e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/core/instruction-builders.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@
(builder builder)
(fn value) (args (carray value)) (num-args :unsigned-int)
(name :string))
(defun build-call (builder fn args name)
(%build-call builder fn args (length args) name))
(defcfun (build-call-void "LLVMBuildCall") value
(builder builder)
(fn value) (args (carray value)) (num-args :unsigned-int))
(defun build-call (builder fn args &optional name)
(if name
(%build-call builder fn args (length args) name)
(build-call-void builder fn args (length args))))

(defcfun* "LLVMBuildSelect" value
(builder builder) (if value) (then value) (else value) (name :string))
(defcfun* "LLVMBuildVAArg" value
Expand Down

0 comments on commit 9e9e58e

Please sign in to comment.