diff options
-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; }; |