Function rustc_trans::trans::foreign::trans_native_callExperimental
[-]
[+]
[src]
pub fn trans_native_call<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, callee_ty: Ty<'tcx>, llfn: ValueRef, llretptr: ValueRef, llargs_rust: &[ValueRef], passed_arg_tys: Vec<Ty<'tcx>>) -> Block<'blk, 'tcx>
Prepares a call to a native function. This requires adapting from the Rust argument passing rules to the native rules.
Parameters
callee_ty: Rust type for the function we are callingllfn: the function pointer we are callingllretptr: where to store the return value of the functionllargs_rust: a list of the argument values, prepared as they would be if calling a Rust functionpassed_arg_tys: Rust type for the arguments. Normally we can derive these from callee_ty but in the case of variadic functions passed_arg_tys will include the Rust type of all the arguments including the ones not specified in the fn's signature.