pub fn register_fn_llvmty(ccx: &CrateContext,
                          sp: Span,
                          sym: String,
                          node_id: ast::NodeId,
                      cc: llvm::CallConv,
                          llfty: Type) -> ValueRef {
    debug!("register_fn_llvmty id={} sym={}", node_id, sym);

    let llfn = declare::define_fn(ccx, &sym[..], cc, llfty,
                                   ty::FnConverging(ty::mk_nil(ccx.tcx()))).unwrap_or_else(||{
        ccx.sess().span_fatal(sp, &format!("symbol `{}` is already defined", sym));
    });
    finish_register_fn(ccx, sym, node_id, llfn);
    llfn
}
// only use this for foreign function ABIs and glue, use `register_fn` for Rust functions
only use this for foreign function ABIs and glue, use `register_fn` for Rust functions
only use this for foreign function ABIs and glue use ` register_fn ` for Rust functions
pub fn register_fn_llvmty(ccx: &CrateContext,
                          sp: Span,
                          sym: String,
                          node_id: ast::NodeId,
                      cc: llvm::CallConv,
                          llfty: Type) -> ValueRef {
    debug!("register_fn_llvmty id={} sym={}", node_id, sym);
    let llfn = declare::define_fn(ccx, &sym[..], cc, llfty,
                                   ty::FnConverging(ty::mk_nil(ccx.tcx()))).unwrap_or_else(||{
        ccx.sess().span_fatal(sp, &format!("symbol `{}` is already defined", sym));
    });
    finish_register_fn(ccx, sym, node_id, llfn);
    llfn
}
pub fn register_fn_llvmty ( ccx : & CrateContext , sp : Span , sym : String , node_id : ast :: NodeId , cc : llvm :: CallConv , llfty : Type ) -> ValueRef { debug ! ( " " node_id sym ) ; let llfn = declare :: define_fn ( ccx , & sym [ .. ] , cc , llfty , ty :: FnConverging ( ty :: mk_nil ( ccx . tcx ( ) ) ) ) . unwrap_or_else ( | | { ccx . sess ( ) . span_fatal ( sp , & format ! ( " " sym ) ) ; } ) ; finish_register_fn ( ccx , sym , node_id , llfn ) ; llfn }
only use this for foreign function ABIs and glue, use `register_fn` for Rust functions
only use this for foreign function ABIs and glue use ` register_fn ` for Rust functions
ccx
&CrateContext
sp
Span
sym
String
node_id
ast::NodeId
cc
llvm::CallConv
llfty
Type