From 49b7709420e7d78ed3797bf1520b832468d7a464 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 24 Aug 2008 23:20:26 +0200 Subject: Minor cleanups. --- MLKLLVMCompiler.mm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index 75b8770..5430900 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -99,9 +99,12 @@ static Constant +(void) initialize { module = new llvm::Module ("MLKLLVMModule"); - execution_engine = ExecutionEngine::create (module); - PointerTy = PointerType::get(Type::Int8Ty, 0); module_provider = new ExistingModuleProvider (module); + + //execution_engine = ExecutionEngine::create (module_provider, true); + execution_engine = ExecutionEngine::create (module_provider, false); + + PointerTy = PointerType::get(Type::Int8Ty, 0); fpm = new FunctionPassManager (module_provider); fpm->add (new TargetData (*execution_engine->getTargetData())); //fpm->add (new TargetData (module)); -- cgit v1.2.3