[][src]Function rustc_codegen_llvm::declare::define_internal_fn

pub fn define_internal_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 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.