Skip to main content

declare_simple_fn

Function declare_simple_fn 

Source
pub(crate) fn declare_simple_fn<'ll>(
    cx: &GenericCx<'ll, SCx<'ll>>,
    name: &str,
    callconv: CallConv,
    unnamed: UnnamedAddr,
    visibility: Visibility,
    ty: Type<'ll>,
) -> Value<'ll>
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.