From abd56ef20bc8061bbecec29edd1301d324c2cb34 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 08:34:42 +0000 Subject: feat(classes): destroy stack objects at scope exit Co-Authored-By: Claude Opus 5.5 --- include/cps/FunctionGen.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cps/FunctionGen.h') diff --git a/include/cps/FunctionGen.h b/include/cps/FunctionGen.h index 5ff746d..777ab7d 100644 --- a/include/cps/FunctionGen.h +++ b/include/cps/FunctionGen.h @@ -64,6 +64,7 @@ private: IdentifierMap Signatures; ArrayParamBinder BindArrayParam; + std::function RegisterCopy; void createArgumentAllocas(llvm::Function *F, const std::vector &Params, bool IsMethod); @@ -81,6 +82,10 @@ public: void setArrayParamBinder(ArrayParamBinder Binder) { BindArrayParam = std::move(Binder); } + void setCopyRegistrar(std::function Registrar) { + RegisterCopy = std::move(Registrar); + } + const FuncSig *getSignature(const std::string &Name) const; llvm::Function *emitPrototype(PrototypeAST *Proto); -- cgit v1.3.1-4-g156e