diff options
-rw-r--r-- | llvm.cpp | 8 | ||||
-rw-r--r-- | tuplr.hpp | 2 |
2 files changed, 2 insertions, 8 deletions
@@ -51,7 +51,7 @@ llType(const AType* t) } struct LLVMEngine { - LLVMEngine(); + LLVMEngine() : module(new Module("tuplr")), engine(ExecutionEngine::create(module)) {} Module* module; ExecutionEngine* engine; IRBuilder<> builder; @@ -63,12 +63,6 @@ llengine(CEnv& cenv) return reinterpret_cast<LLVMEngine*>(cenv.engine()); } -LLVMEngine::LLVMEngine() - : module(new Module("tuplr")) - , engine(ExecutionEngine::create(module)) -{ -} - struct CEnv::PImpl { PImpl(LLVMEngine* e) : engine(e), module(e->module), emp(module), opt(&emp) { @@ -131,7 +131,7 @@ SExp readExpression(Cursor& cur, std::istream& in); typedef void* CValue; ///< Compiled value (opaque) typedef void* CFunction; ///< Compiled function (opaque) -typedef void* CEngine; ///< Compiler Engine (opaque) +typedef void* CEngine; ///< Compiler engine (opaque) /*************************************************************************** |