summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-24 23:20:26 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-24 23:20:26 +0200
commit49b7709420e7d78ed3797bf1520b832468d7a464 (patch)
tree17516ef0cc4c9da0c7ffdc5aa0cc8ae44c2750fd
parent3e31a3b0ab427146d310fd7fc82d5e27f7735635 (diff)
Minor cleanups.
-rw-r--r--MLKLLVMCompiler.mm7
1 files 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));