/// Declare a Rust function with an intention to define it.
///
/// Use this function when you intend to define a function. This function will
/// return panic if the name already has a definition associated with it. This
/// can happen with #[no_mangle] or #[export_name], for example.
Declare a Rust function with an intention to define it.
Use this function when you intend to define a function. This function will
return panic if the name already has a definition associated with it. This
can happen with #[no_mangle] or #[export_name], for example.
Declare a Rust function with an intention to define it . Use this function when you intend to define a function . This function will return panic if the name already has a definition associated with it . This can happen with # [ no_mangle ] or # [ export_name ] for example .
pub fn define_internal_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
                                    name: &str,
                                    fn_type: ty::Ty<'tcx>) -> ValueRef {
    let llfn = define_fn(ccx, name, fn_type);
    llvm::SetLinkage(llfn, llvm::InternalLinkage);
    llfn
}
pub fn define_internal_fn < ' a , ' tcx > ( ccx : & CrateContext < ' a , ' tcx > , name : & str , fn_type : ty :: Ty < ' tcx > ) -> ValueRef { let llfn = define_fn ( ccx , name , fn_type ) ; llvm :: SetLinkage ( llfn , llvm :: InternalLinkage ) ; llfn }
Declare a Rust function with an intention to define it.
Declare a Rust function with an intention to define it .
ccx
&CrateContext<'a, 'tcx>
name
&str
fn_type
ty::Ty<'tcx>