File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -263,3 +263,10 @@ void CleanupManager::dump() const {
263
263
}
264
264
#endif
265
265
}
266
+
267
+ void CleanupManager::dump (CleanupHandle handle) const {
268
+ auto iter = Stack.find (handle);
269
+ const Cleanup &stackCleanup = *iter;
270
+ llvm::errs () << " CLEANUP DEPTH: " << handle.getDepth () << " \n " ;
271
+ stackCleanup.dump (Gen);
272
+ }
Original file line number Diff line number Diff line change @@ -204,6 +204,9 @@ class LLVM_LIBRARY_VISIBILITY CleanupManager {
204
204
205
205
// / Dump the output of each cleanup on this stack.
206
206
void dump () const ;
207
+
208
+ // / Dump the given cleanup handle if it is on the current stack.
209
+ void dump (CleanupHandle handle) const ;
207
210
};
208
211
209
212
// / An RAII object that allows the state of a cleanup to be
You can’t perform that action at this time.
0 commit comments