aboutsummaryrefslogtreecommitdiffstats
path: root/ast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ast.hpp')
-rw-r--r--ast.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ast.hpp b/ast.hpp
index 7d213ba..b7802c1 100644
--- a/ast.hpp
+++ b/ast.hpp
@@ -66,10 +66,12 @@ struct CallAST : public BaseAST
struct ThunkAST : public BaseAST
{
static int tcount;
+ static int envidx;
- std::list<std::unique_ptr<BaseAST>> body;
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);