Like absl::Cleanup, llvm::Cleanup runs an arbitrary function right
before the scope containing the Cleanup exits.
You can use this to do some work at the end of a function, right before
it returns.
This is used in a later patch.
Paths
| Differential D134008
Add Cleanup class. AbandonedPublic Authored by jlebar on Sep 15 2022, 8:05 PM.
Details
Diff Detail
Event Timelinejlebar added a child revision: D134006: Add an optional cache to computeKnownBits..Sep 15 2022, 8:05 PM This revision now requires changes to proceed.Sep 16 2022, 12:48 AM Comment Actions
You are definitely not missing something. :) I looked through ADT before writing this patch, but clearly I did not look closely enough. Thank you.
Revision Contents
Diff 460616 llvm/include/llvm/ADT/Cleanup.h
llvm/unittests/ADT/CMakeLists.txt
llvm/unittests/ADT/CleanupTest.cpp
|