Fix CounterGroup to use built-in types
[mono-project.git] / mono / mini / llvm-runtime.cpp
blob69e9bc04f452c5e9037d81963d962718348d3996
1 #include <config.h>
2 #include "llvm-runtime.h"
4 #include <glib.h>
6 extern "C" {
8 void
9 mono_llvm_cpp_throw_exception (void)
11 #ifdef MONO_LLVM_LOADED
12 g_assert_not_reached ();
13 #else
14 gint32 *ex = NULL;
16 /* The generated code catches an int32* */
17 throw ex;
18 #endif
21 void
22 mono_llvm_cpp_catch_exception (MonoLLVMInvokeCallback cb, gpointer arg, gboolean *out_thrown)
24 *out_thrown = FALSE;
25 try {
26 cb (arg);
27 } catch (int*) {
28 *out_thrown = TRUE;