diff options
author | David Robillard <d@drobilla.net> | 2010-12-28 06:16:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-28 06:16:48 +0000 |
commit | 1928afa8968b8bb5b921da52c0e845e42dde518b (patch) | |
tree | 8f9bb88ee2664994af9645e51fca4cb6b7a7b4bf | |
parent | cce4f16e87870eae8a1c3f430c9617cefd55fe54 (diff) | |
download | resp-1928afa8968b8bb5b921da52c0e845e42dde518b.tar.gz resp-1928afa8968b8bb5b921da52c0e845e42dde518b.tar.bz2 resp-1928afa8968b8bb5b921da52c0e845e42dde518b.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/resp/resp@363 ad02d1e2-f140-0410-9f75-f8b11f17cedd
-rw-r--r-- | src/llvm.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/llvm.cpp b/src/llvm.cpp index f6874d7..4c8ff2a 100644 --- a/src/llvm.cpp +++ b/src/llvm.cpp @@ -61,15 +61,15 @@ struct LLVMEngine : public Engine { void finishFn(CEnv& cenv, CFunc f, CVal ret); void eraseFn(CEnv& cenv, CFunc f); - CVal compileCall(CEnv& cenv, CFunc f, const ATuple* funcT, const vector<CVal>& args); - CVal compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields); - CVal compileDot(CEnv& cenv, CVal tup, int32_t index); - CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AST* t); - CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v); - CVal compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* aelse); - CVal compileLiteral(CEnv& cenv, const AST* lit); - CVal compilePrimitive(CEnv& cenv, const ATuple* prim); - CVal compileString(CEnv& cenv, const char* str); + CVal compileCall(CEnv& cenv, CFunc f, const ATuple* funcT, const vector<CVal>& args); + CVal compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields); + CVal compileDot(CEnv& cenv, CVal tup, int32_t index); + CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AST* t); + CVal compileGlobalGet(CEnv& cenv, const string& s, CVal v); + CVal compileIf(CEnv& cenv, const AST* cond, const AST* then, const AST* aelse); + CVal compileLiteral(CEnv& cenv, const AST* lit); + CVal compilePrimitive(CEnv& cenv, const ATuple* prim); + CVal compileString(CEnv& cenv, const char* str); void writeModule(CEnv& cenv, std::ostream& os); @@ -85,12 +85,12 @@ private: inline Function* llFunc(CFunc f) { return static_cast<Function*>(f); } const Type* llType(const AST* t); - LLVMContext context; - Module* module; - ExecutionEngine* engine; - IRBuilder<> builder; - Function* alloc; - FunctionPassManager* opt; + LLVMContext context; + Module* module; + ExecutionEngine* engine; + IRBuilder<> builder; + Function* alloc; + FunctionPassManager* opt; unsigned labelIndex; }; |