[][src]Function rustc_codegen_llvm::declare::declare_global

pub fn declare_global<'ll>(
    cx: &CodegenCx<'ll, '_>,
    name: &str,
    ty: &'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 global value.

If there’s a value with the same name already declared, the function will return its Value instead.