From a7fb7f1fdb26418189d6241c47cc4d69531da809 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Jun 2009 19:35:09 +0000 Subject: Remove redundant module pointer. git-svn-id: http://svn.drobilla.net/resp/tuplr@139 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- llvm.cpp | 4 +--- tuplr.cpp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm.cpp b/llvm.cpp index efbd454..d3782f9 100644 --- a/llvm.cpp +++ b/llvm.cpp @@ -78,7 +78,7 @@ llEngine(CEnv& cenv) } struct CEnv::PImpl { - PImpl(LLVMEngine* e) : engine(e), module(e->module), emp(module), opt(&emp) + PImpl(LLVMEngine* e) : engine(e), emp(e->module), opt(&emp) { // Set up the optimizer pipeline: const TargetData* target = engine->engine->getTargetData(); @@ -90,7 +90,6 @@ struct CEnv::PImpl { } LLVMEngine* engine; - Module* module; ExistingModuleProvider emp; FunctionPassManager opt; }; @@ -229,7 +228,6 @@ tuplr_free_engine(CEngine engine) } - /*************************************************************************** * Code Generation * ***************************************************************************/ diff --git a/tuplr.cpp b/tuplr.cpp index bc5ea0b..da5a31a 100644 --- a/tuplr.cpp +++ b/tuplr.cpp @@ -46,6 +46,7 @@ operator<<(ostream& out, const Exp& exp) return out; } + /*************************************************************************** * Lexer * ***************************************************************************/ -- cgit v1.2.1