Fix the non-llvm build.
[mono.git] / mono / mini / llvm-runtime.cpp
1 #include <config.h>
2 #include "llvm-runtime.h"
3
4 #include <glib.h>
5
6 #if defined(ENABLE_LLVM_RUNTIME) || defined(ENABLE_LLVM)
7
8 extern "C" {
9
10 void
11 mono_llvm_cpp_throw_exception (void)
12 {
13         gint32 *ex = NULL;
14
15         /* The generated code catches an int32* */
16         throw ex;
17 }
18
19 }
20
21 #else
22
23 extern "C" {
24
25 void
26 mono_llvm_cpp_throw_exception (void)
27 {
28         g_assert_not_reached ();
29 }
30
31 }
32
33 #endif /* ENABLE_LLVM_RUNTIME */