We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c739308 commit 5ef8f3bCopy full SHA for 5ef8f3b
lib/SIL/Verifier/FlowSensitiveVerifier.cpp
@@ -50,6 +50,15 @@ struct BBState {
50
BBState(maybe_movable_ref<BBState> other)
51
: BBState(std::move(other).construct()) {}
52
53
+ /// Print for dumping all information.
54
+ void print(llvm::raw_ostream &os) const {
55
+ SILPrintContext ctx(os);
56
+ printStack(ctx, "stack");
57
+ printActiveOps(ctx, "active_ops");
58
+ }
59
+
60
+ SWIFT_DEBUG_DUMP { print(llvm::dbgs()); }
61
62
void printStack(SILPrintContext &ctx, StringRef label) const {
63
ctx.OS() << label << ": [";
64
if (!Stack.empty())
0 commit comments