aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
/***************************************************************************