pub(crate) fn gen_wrapper_body<'a, 'b, D: IrDatabase>(
    db: &'a D,
    function: (hir::Function, FunctionValue),
    llvm_functions: &'a HashMap<hir::Function, FunctionValue>,
    dispatch_table: &'b DispatchTable,
    type_table: &'b TypeTable,
    external_globals: ExternalGlobals,
) {
    let mut code_gen = BodyIrGenerator::new(
        db,
        function,
        llvm_functions,
        dispatch_table,
        type_table,
        CodeGenParams {
            make_marshallable: true,
        },
        external_globals,
    );

    code_gen.gen_fn_wrapper();
}
/// Generates the body of a wrapper around `hir::Function` for its associated
/// `FunctionValue`
Generates the body of a wrapper around `hir::Function` for its associated
`FunctionValue`
Generates the body of a wrapper around ` hir :: Function ` for its associated ` FunctionValue `
pub(crate) fn gen_wrapper_body<'a, 'b, D: IrDatabase>(
    db: &'a D,
    function: (hir::Function, FunctionValue),
    llvm_functions: &'a HashMap<hir::Function, FunctionValue>,
    dispatch_table: &'b DispatchTable,
    type_table: &'b TypeTable,
    external_globals: ExternalGlobals,
) {
    let mut code_gen = BodyIrGenerator::new(
        db,
        function,
        llvm_functions,
        dispatch_table,
        type_table,
        CodeGenParams {
            make_marshallable: true,
        },
        external_globals,
    );
    code_gen.gen_fn_wrapper();
}
pub ( crate ) fn gen_wrapper_body < ' a , ' b , D : IrDatabase > ( db : & ' a D , function : ( hir :: Function , FunctionValue ) , llvm_functions : & ' a HashMap < hir :: Function , FunctionValue > , dispatch_table : & ' b DispatchTable , type_table : & ' b TypeTable , external_globals : ExternalGlobals , ) { let mut code_gen = BodyIrGenerator :: new ( db , function , llvm_functions , dispatch_table , type_table , CodeGenParams { make_marshallable : true , } , external_globals , ) ; code_gen . gen_fn_wrapper ( ) ; }
Generates the body of a wrapper around `hir::Function` for its associated
`FunctionValue`
Generates the body of a wrapper around ` hir :: Function ` for its associated ` FunctionValue `
db
&'a D
function
(hir::Function, FunctionValue)
llvm_functions
&'a HashMap<hir::Function, FunctionValue>
dispatch_table
&'b DispatchTable
type_table
&'b TypeTable
external_globals
ExternalGlobals
db
&'a D
function
(hir::Function, FunctionValue)
llvm_functions
&'a HashMap<hir::Function, FunctionValue>
dispatch_table
&'b DispatchTable
type_table
&'b TypeTable
external_globals
ExternalGlobals