Skip to content

[silgen] Mark CleanupManager::dump() as used and wrap it in a debugger only warning. #39036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/SILGen/Cleanup.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ class LLVM_LIBRARY_VISIBILITY CleanupManager {
bool hasAnyActiveCleanups(CleanupsDepth from);

/// Dump the output of each cleanup on this stack.
void dump() const;
LLVM_ATTRIBUTE_DEPRECATED(void dump() const LLVM_ATTRIBUTE_USED,
"Only for use in the debugger");

/// Dump the given cleanup handle if it is on the current stack.
void dump(CleanupHandle handle) const;
Expand Down