diff options
Diffstat (limited to 'include/cps/ExceptionHandler.h')
| -rw-r--r-- | include/cps/ExceptionHandler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cps/ExceptionHandler.h b/include/cps/ExceptionHandler.h index a2dc5d0..f55526b 100644 --- a/include/cps/ExceptionHandler.h +++ b/include/cps/ExceptionHandler.h @@ -25,6 +25,7 @@ class ExceptionHandler { llvm::Instruction *Before; FunctionState State; bool Unwinding; + bool TemporariesOnly = false; }; std::map<llvm::Function *, std::vector<CleanupPoint>> CleanupPoints; bool FillingUnwind = false; @@ -50,7 +51,7 @@ public: llvm::Instruction *emitReturnCleanup(); void enableCleanups(llvm::Function *F); void recordExit(llvm::Instruction *Before, bool Unwinding = false); - void fillCleanups(llvm::Function *F, const std::function<void()> &Destroy); + void fillCleanups(llvm::Function *F, const std::function<void(bool)> &Destroy); llvm::Value *emitCall(llvm::FunctionCallee Callee, llvm::ArrayRef<llvm::Value *> Args, const llvm::Twine &Name = ""); |
