# Function rustc_codegen_llvm::declare::declare_raw_fn

source ·

    fn declare_raw_fn<'ll>(
        cx: &CodegenCx<'ll, '_>,
        name: &str,
        callconv: CallConv,
        unnamed: UnnamedAddr,
        visibility: Visibility,
        ty: &'ll Type
    ) -> &'ll Value

Expand description

Declare a function.

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