summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Benkard <mulk@minimulk.mst-plus>2008-09-29 11:48:28 +0200
committerMatthias Benkard <mulk@minimulk.mst-plus>2008-09-29 11:48:28 +0200
commita22ae1f747a03dd8cd0e283dca1929962c9cbcf6 (patch)
tree4abd7b7c337a8f090562714b035c5d95271d9d5e
parenta91c396ba85243465acb7a073c58b3e3f8136587 (diff)
LLVM compiler: Disable the freeing of temporary functions for now.
-rw-r--r--MLKLLVMCompiler.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index 8602ddd..377bee5 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -177,7 +177,8 @@ static Constant
fn = (id (*)()) execution_engine->getPointerToFunction (function);
// Execute.
lambdaForm = fn();
- execution_engine->freeMachineCodeForFunction (function);
+ // FIXME: Free machine code when appropriate. (I.e. now? But this crashes after a LOAD.)
+ //execution_engine->freeMachineCodeForFunction (function);
#else
Interpreter *i = Interpreter::create (module_provider);
lambdaForm = i->runFunction (function)->PointerVal;