[aot] Allow the loading of llvm compiled code into a non-llvm runtime on arm and...
authorZoltan Varga <vargaz@gmail.com>
Thu, 7 Jul 2016 22:57:55 +0000 (18:57 -0400)
committerZoltan Varga <vargaz@gmail.com>
Thu, 7 Jul 2016 22:57:55 +0000 (18:57 -0400)
mono/mini/aot-runtime.c

index 5aa2ca6d88adbd0f277161acc20065472074ea20..d4eb786235ed89a7de1860e7c2be46fce9e9ecab 100644 (file)
@@ -1782,17 +1782,6 @@ check_usable (MonoAssembly *assembly, MonoAotFileInfo *info, guint8 *blob, char
                msg = g_strdup_printf ("not compiled with --aot=llvmonly");
                usable = FALSE;
        }
-#ifdef TARGET_ARM
-       /* mono_arch_find_imt_method () requires this */
-       if ((info->flags & MONO_AOT_FILE_FLAG_WITH_LLVM) && !mono_use_llvm) {
-               msg = g_strdup_printf ("compiled against LLVM");
-               usable = FALSE;
-       }
-       if (!(info->flags & MONO_AOT_FILE_FLAG_WITH_LLVM) && mono_use_llvm) {
-               msg = g_strdup_printf ("not compiled against LLVM");
-               usable = FALSE;
-       }
-#endif
        if (mini_get_debug_options ()->mdb_optimizations && !(info->flags & MONO_AOT_FILE_FLAG_DEBUG) && !full_aot) {
                msg = g_strdup_printf ("not compiled for debugging");
                usable = FALSE;