diff options
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index a70d191..9d71df7 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -40,6 +40,8 @@ class CodeGen { llvm::Value *emitMethodCall(const std::string &Class, llvm::Value *Receiver, const std::string &Name, const std::vector<std::unique_ptr<ExprAST>> &Args, int Line); + bool typeNeedsDestruction(const std::string &TypeName) const; + bool emitDestroy(const std::string &TypeName, llvm::Value *Addr, int Line); bool typeNeedsConstruction(const std::string &TypeName) const; bool emitConstruct(const std::string &TypeName, llvm::Value *Addr, const std::vector<std::unique_ptr<ExprAST>> &Args, int Line); |
