Skip to content

Commit 44911e0

Browse files
committed
Add ApplySite::dump().
This is one of the most common operations that I perform in a debugger.
1 parent f3b9b84 commit 44911e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/swift/SIL/ApplySite.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ class ApplySite {
383383
static bool classof(const SILInstruction *inst) {
384384
return bool(ApplySiteKind::fromNodeKind(inst->getKind()));
385385
}
386+
387+
void dump() const { getInstruction()->dump(); }
386388
};
387389

388390
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)