[mini] Add MONO_ prefix to RETURN_ADDRESS macro.
[mono.git] / mono / mini / llvm-runtime.cpp
index 5dcb8d1488b223474f615352c0186f53e99dee8a..c747e022b38f585e3da61438ad41f954061e5722 100644 (file)
@@ -3,31 +3,19 @@
 
 #include <glib.h>
 
-#if defined(ENABLE_LLVM_RUNTIME) || defined(ENABLE_LLVM)
-
 extern "C" {
 
 void
 mono_llvm_cpp_throw_exception (void)
 {
+#ifdef MONO_LLVM_LOADED
+       g_assert_not_reached ();
+#else
        gint32 *ex = NULL;
 
        /* The generated code catches an int32* */
        throw ex;
+#endif
 }
 
 }
-
-#else
-
-extern "C" {
-
-void
-mono_llvm_cpp_throw_exception (void)
-{
-       g_assert_not_reached ();
-}
-
-}
-
-#endif /* ENABLE_LLVM_RUNTIME */