diff options
author | David Robillard <d@drobilla.net> | 2009-06-20 18:35:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-06-20 18:35:47 +0000 |
commit | a34fdc61633467976971f4bd88c7c32d353fa8d0 (patch) | |
tree | 9682c87c326e6d18f9447a69f525183f0c248aee | |
parent | 2c8d949da599dacd7676ea49010e8a739845bac4 (diff) | |
download | resp-a34fdc61633467976971f4bd88c7c32d353fa8d0.tar.gz resp-a34fdc61633467976971f4bd88c7c32d353fa8d0.tar.bz2 resp-a34fdc61633467976971f4bd88c7c32d353fa8d0.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/resp/tuplr@135 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-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) /*************************************************************************** |