diff options
Diffstat (limited to 'ast.hpp')
-rw-r--r-- | ast.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -68,14 +68,17 @@ struct ThunkAST : public BaseAST static int tcount; static int envidx; + std::list<std::unique_ptr<BaseAST>> ast; llvm::IRBuilderBase::InsertPoint parent; llvm::Function *func; llvm::BasicBlock *entry, *body; llvm::Value *env; - explicit ThunkAST(LLVMState& llvmState); - explicit ThunkAST(LLVMState& llvmState, std::string n); + explicit ThunkAST(); llvm::Value *codegen(LLVMState& llvmState) const override; + + void beginGen(LLVMState& llvmState); + void endGen(LLVMState& llvmState); }; #endif // FORSPLL_AST_HPP |