[−][src]Function rustc_codegen_llvm::declare::declare_fn
pub fn declare_fn<'ll, 'tcx>(
cx: &CodegenCx<'ll, 'tcx>,
name: &str,
fn_type: Ty<'tcx>
) -> &'ll Value
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Declare a Rust function.
If there’s a value with the same name already declared, the function will update the declaration and return existing Value instead.