projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f823ced
)
Fix llvm on x86. Fixes #3689.
author
Zoltan Varga
<vargaz@gmail.com>
Thu, 1 Mar 2012 00:58:20 +0000
(
01:58
+0100)
committer
Zoltan Varga
<vargaz@gmail.com>
Thu, 1 Mar 2012 00:58:20 +0000
(
01:58
+0100)
mono/mini/mini-llvm-cpp.cpp
patch
|
blob
|
history
diff --git
a/mono/mini/mini-llvm-cpp.cpp
b/mono/mini/mini-llvm-cpp.cpp
index 56d44a77ad872e0f9e6ec62914ccef7ea09d5080..5af6af5423e6f418054279c05339b605b2b6b8df 100644
(file)
--- a/
mono/mini/mini-llvm-cpp.cpp
+++ b/
mono/mini/mini-llvm-cpp.cpp
@@
-499,7
+499,11
@@
mono_llvm_create_ee (LLVMModuleProviderRef MP, AllocCodeMemoryCb *alloc_cb, Func
opts.JITExceptionHandling = 1;
EngineBuilder b (unwrap (MP));
+#ifdef TARGET_AMD64
ExecutionEngine *EE = b.setJITMemoryManager (mono_mm).setTargetOptions (opts).setCodeModel (CodeModel::Large).setAllocateGVsWithCode (true).create ();
+#else
+ ExecutionEngine *EE = b.setJITMemoryManager (mono_mm).setTargetOptions (opts).setAllocateGVsWithCode (true).create ();
+#endif
g_assert (EE);
#if 0