aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-20 18:35:47 +0000
committerDavid Robillard <d@drobilla.net>2009-06-20 18:35:47 +0000
commita34fdc61633467976971f4bd88c7c32d353fa8d0 (patch)
tree9682c87c326e6d18f9447a69f525183f0c248aee
parent2c8d949da599dacd7676ea49010e8a739845bac4 (diff)
downloadresp-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.cpp8
-rw-r--r--tuplr.hpp2
2 files changed, 2 insertions, 8 deletions
diff --git a/llvm.cpp b/llvm.cpp
index 5024f85..14ea407 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -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)
{
diff --git a/tuplr.hpp b/tuplr.hpp
index c548110..dd2570a 100644
--- a/tuplr.hpp
+++ b/tuplr.hpp
@@ -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)
/***************************************************************************