pub fn get_fn<'ll, 'tcx>(
    cx: &CodegenCx<'ll, 'tcx>,
    instance: Instance<'tcx>
) -> &'ll Value
Expand description

Codegens a reference to a fn/method item, monomorphizing and inlining as it goes.

Parameters

  • cx: the crate context
  • instance: the instance to be instantiated