Function declare_raw_fn

Source
pub(crate) fn declare_raw_fn<'ll, 'tcx>(
    cx: &GenericCx<'ll, FullCx<'ll, 'tcx>>,
    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.