[aot] Print out more info when a method cannot be AOTed.
authorZoltan Varga <vargaz@gmail.com>
Wed, 15 Mar 2017 22:33:25 +0000 (18:33 -0400)
committerZoltan Varga <vargaz@gmail.com>
Wed, 15 Mar 2017 22:33:32 +0000 (18:33 -0400)
mono/mini/aot-compiler.c

index 22dc64f95197ac60691c4a89eac17f793438fc2f..59a123ed0573475ceb7e0551c9ee6c1b7171bbfb 100644 (file)
@@ -7597,8 +7597,11 @@ compile_method (MonoAotCompile *acfg, MonoMethod *method)
                return;
        }
        if (cfg->exception_type != MONO_EXCEPTION_NONE) {
-               if (acfg->aot_opts.print_skipped_methods)
+               if (acfg->aot_opts.print_skipped_methods) {
                        printf ("Skip (JIT failure): %s\n", mono_method_get_full_name (method));
+                       if (cfg->exception_message)
+                               printf ("Caused by: %s\n", cfg->exception_message);
+               }
                /* Let the exception happen at runtime */
                return;
        }