use of org.robovm.compiler.llvm.Invoke in project robovm by robovm.
the class Functions method invoke.
public static Value invoke(Function currentFunction, Value fn, BasicBlockRef success, BasicBlockRef failure, Value... args) {
Variable result = null;
Type returnType = ((FunctionType) fn.getType()).getReturnType();
if (returnType != VOID) {
result = currentFunction.newVariable(returnType);
}
currentFunction.add(new Invoke(result, fn, success, failure, args));
return result == null ? null : result.ref();
}
Aggregations