[][src]Function rustc_codegen_llvm::declare::declare_cfn

pub fn declare_cfn<'ll>(
    cx: &CodegenCx<'ll, '_>,
    name: &str,
    fn_type: &'ll Type
) -> &'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 C ABI function.

Only use this for foreign function ABIs and glue. For Rust functions use declare_fn instead.

If there’s a value with the same name already declared, the function will update the declaration and return existing Value instead.