Permalink
Browse files

Builder call() with ArrayList.

  • Loading branch information...
1 parent 8d6d226 commit 0b109ebfb5ec6e8e2e003f4126e00a5965ee9368 Scott Olson committed Dec 9, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 llvm/Core.ooc
View
@@ -325,6 +325,9 @@ Builder: cover from LLVMBuilderRef {
call: func ~withArray (fn: Function, args: Value[], name := "") -> Value {
call(fn, args data, args length, name)
}
+ call: func ~withArrayList (fn: Function, args: ArrayList<Value>, name := "") -> Value {
+ call(fn, args toArray() as Value*, args size as UInt, name)
+ }
select: extern(LLVMBuildSelect) func (ifVal, thenVal, elseVal: Value, name: CString) -> Value
vaArg: extern(LLVMBuildVAArg) func (list: Value, Type, name: CString) -> Value
extractElement: extern(LLVMBuildExtractElement) func (vector, index: Value, name: CString) -> Value

0 comments on commit 0b109eb

Please sign in to comment.