static int
add_method_full (MonoAotCompile *acfg, MonoMethod *method, gboolean extra, int depth)
{
+ if (collect_dedup_method (acfg, method))
+ return -1;
+
int index;
index = GPOINTER_TO_UINT (g_hash_table_lookup (acfg->method_indexes, method));
mono_error_assert_ok (error);
}
- if (collect_dedup_method (acfg, method))
- return;
-
if (acfg->aot_opts.log_generics)
aot_printf (acfg, "%*sAdding method %s.\n", depth, "", mono_method_get_full_name (method));
/* Use a set of wrappers/instances which work and useful */
switch (method->wrapper_type) {
case MONO_WRAPPER_RUNTIME_INVOKE:
-#ifdef TARGET_WASM
return TRUE;
-#else
- return FALSE;
-#endif
- break;
case MONO_WRAPPER_OTHER: {
WrapperInfo *info = mono_marshal_get_wrapper_info (method);