Skip to content

Commit 178804c

Browse files
committed
[silgen] Mark CleanupManager::dump() as used and wrap it in a debugger only warning.
1 parent 67416a5 commit 178804c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILGen/Cleanup.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ class LLVM_LIBRARY_VISIBILITY CleanupManager {
272272
bool hasAnyActiveCleanups(CleanupsDepth from);
273273

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

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

0 commit comments

Comments
 (0)