'Emit call to "external" init function, if any.'

def _emit_module_init_code(self, llvm_module, builder, modobj, method_array, env_array):

    if self.external_init_function:
        fnty = ir.FunctionType(lt._int32, [modobj.type, self.method_def_ptr, self.env_def_ptr])
        fn = llvm_module.add_function(fnty, self.external_init_function)
        return builder.call(fn, [modobj, method_array, env_array])
    else:
        return None
