if (!cfg->has_got_slots)
InterlockedIncrement (&acfg->stats.methods_without_got_slots);
- if (!cfg->method->wrapper_type || cfg->method->wrapper_type == MONO_WRAPPER_DELEGATE_INVOKE)
- /* These only need out wrappers */
- add_gsharedvt_wrappers (acfg, mono_method_signature (cfg->method), FALSE, TRUE);
-
/* Add gsharedvt wrappers for signatures used by the method */
if (acfg->aot_opts.llvm_only) {
GSList *l;
+ if (!cfg->method->wrapper_type || cfg->method->wrapper_type == MONO_WRAPPER_DELEGATE_INVOKE)
+ /* These only need out wrappers */
+ add_gsharedvt_wrappers (acfg, mono_method_signature (cfg->method), FALSE, TRUE);
+
for (l = cfg->signatures; l; l = l->next) {
MonoMethodSignature *sig = mono_metadata_signature_dup ((MonoMethodSignature*)l->data);