Function rustc::middle::trans::foreign::trans_native_call[src]
pub fn trans_native_call<'a>(bcx: &'a Block<'a>, callee_ty: t, llfn: ValueRef, llretptr: ValueRef, llargs_rust: &[ValueRef], passed_arg_tys: Vec<t>) -> &'a Block<'a>
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.