From a22ae1f747a03dd8cd0e283dca1929962c9cbcf6 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Mon, 29 Sep 2008 11:48:28 +0200 Subject: LLVM compiler: Disable the freeing of temporary functions for now. --- MLKLLVMCompiler.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3