Function declare_simple_fn

Source
pub(crate) fn declare_simple_fn<'ll>(
    cx: &SimpleCx<'ll>,
    name: &str,
    callconv: CallConv,
    unnamed: UnnamedAddr,
    visibility: Visibility,
    ty: &'ll Type,
) -> &'ll Value
Expand description

Declare a function with a SimpleCx.

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