#include "llvm-c/Core.h"
#include "llvm-c/ExecutionEngine.h"
-#include "../metadata/object.h"
-#include "../metadata/domain-internals.h"
-
#include <unwind.h>
G_BEGIN_DECLS
LLVM_ATOMICRMW_OP_ADD = 1,
} AtomicRMWOp;
-typedef unsigned char * (AllocCodeMemoryCb) (LLVMValueRef function, int size);
-typedef void (FunctionEmittedCb) (LLVMValueRef function, void *start, void *end);
-typedef void (ExceptionTableCb) (void *data);
-typedef char* (DlSymCb) (const char *name, void **symbol);
-
-typedef void* MonoEERef;
-
-MonoEERef
-mono_llvm_create_ee (LLVMModuleProviderRef MP, AllocCodeMemoryCb *alloc_cb, FunctionEmittedCb *emitted_cb, ExceptionTableCb *exception_cb, DlSymCb *dlsym_cb, LLVMExecutionEngineRef *ee);
-
-void
-mono_llvm_dispose_ee (MonoEERef *mono_ee);
-
-void
-mono_llvm_optimize_method (MonoEERef mono_ee, LLVMValueRef method);
-
void
mono_llvm_dump_value (LLVMValueRef value);
mono_llvm_set_is_constant (LLVMValueRef global_var);
void
-mono_llvm_cpp_throw_exception (gint32 *exc);
+mono_llvm_set_preserveall_cc (LLVMValueRef func);
void
-mono_llvm_cpp_rethrow_exception (gint32 *exc);
+mono_llvm_set_call_preserveall_cc (LLVMValueRef call);
-void
-mono_llvm_rethrow_exception (MonoException *e, gint32 *exc_tag);
+_Unwind_Reason_Code
+mono_debug_personality (int a, _Unwind_Action b,
+ uint64_t c, struct _Unwind_Exception *d, struct _Unwind_Context *e);
void
-mono_llvm_throw_exception (MonoException *e, gint32 *exc_tag);
+default_mono_llvm_unhandled_exception (void);
-//gint32
-//mono_llvm_match_exception (MonoAotModule *amodule, guint32 aot_method_index);
-//
-// FIXME: The aot.h header is not cpp-safe. Since this header is shared, I am
-// temporarily stubbing it out. The real solution is to partition this header at
-// some point.
-gint32
-mono_llvm_match_exception (MonoJitInfo *jinfo, guint32 region_start, guint32 region_end);
+void*
+mono_llvm_create_di_builder (LLVMModuleRef module);
-void
-mono_llvm_clear_exception (void);
+void*
+mono_llvm_di_create_function (void *di_builder, void *cu, const char *name, const char *mangled_name, const char *dir, const char *file, int line);
-MonoObject *
-mono_llvm_load_exception (void);
+void*
+mono_llvm_di_create_compile_unit (void *di_builder, const char *cu_name, const char *dir, const char *producer);
-void
-mono_llvm_reset_exception (void);
+void*
+mono_llvm_di_create_file (void *di_builder, const char *dir, const char *file);
-_Unwind_Reason_Code
-mono_debug_personality (int a, _Unwind_Action b,
- uint64_t c, struct _Unwind_Exception *d, struct _Unwind_Context *e);
+void*
+mono_llvm_di_create_location (void *di_builder, void *scope, int row, int column);
void
-mono_llvm_set_unhandled_exception_handler (void);
+mono_llvm_di_builder_finalize (void *di_builder);
void
-default_mono_llvm_unhandled_exception (void);
+mono_llvm_di_set_location (LLVMBuilderRef builder, void *loc_md);
G_END_DECLS