Revert "[aot] Add types from the method header even for gshared methods."
authorZoltan Varga <vargaz@gmail.com>
Wed, 5 Feb 2014 23:51:31 +0000 (00:51 +0100)
committerZoltan Varga <vargaz@gmail.com>
Wed, 5 Feb 2014 23:51:31 +0000 (00:51 +0100)
This reverts commit 70d7512ac84dcaf903b80f80b36aafe210337a9a.

mono/mini/aot-compiler.c

index 29ef4b5f608a284063a520814a9e33512a08d50c..1849b816a7fc28e7c36d4b06c709e9f4e6e58d18 100644 (file)
@@ -3815,9 +3815,6 @@ check_type_depth (MonoType *t, int depth)
        return FALSE;
 }
 
-static void
-add_types_from_method_header (MonoAotCompile *acfg, MonoMethod *method);
-
 /*
  * add_generic_class:
  *
@@ -3878,11 +3875,9 @@ add_generic_class_with_depth (MonoAotCompile *acfg, MonoClass *klass, int depth,
                        continue;
                }
                
-               if (mono_method_is_generic_sharable_full (method, FALSE, FALSE, use_gsharedvt)) {
+               if (mono_method_is_generic_sharable_full (method, FALSE, FALSE, use_gsharedvt))
                        /* Already added */
-                       add_types_from_method_header (acfg, method);
                        continue;
-               }
 
                if (method->is_generic)
                        /* FIXME: */