diff options
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 94aacb7..1c80434 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -32,6 +32,10 @@ class CodeGen { std::unique_ptr<llvm::IRBuilder<>> Builder; int DiagnosticLine = 0; IdentifierMap<SymbolInfo> Symbols; + IdentifierMap<IdentifierMap<FunctionDefAST*>> ClassMethods; + std::string CurrentClass; + const PrototypeAST *findMethod(const std::string &Class, const std::string &Name) const; + llvm::Value *emitMemberCall(MemberCallExprAST *Call); struct ConstantScope { unsigned ID; IdentifierMap<std::optional<SymbolInfo>> Saved; |
