Skip to content

Commit 75623f9

Browse files
authored
Merge pull request #31565 from zoecarver/fix/bb-print-method
2 parents 13cb4a4 + db553f2 commit 75623f9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/swift/SIL/SILBasicBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ public llvm::ilist_node<SILBasicBlock>, public SILAllocated<SILBasicBlock> {
402402
/// Pretty-print the SILBasicBlock with the designated stream.
403403
void print(llvm::raw_ostream &OS) const;
404404

405-
/// Pretty-print the SILBasicBlock with the designated stream and context.
406-
void print(llvm::raw_ostream &OS, SILPrintContext &Ctx) const;
405+
/// Pretty-print the SILBasicBlock with the designated context.
406+
void print(SILPrintContext &Ctx) const;
407407

408408
void printAsOperand(raw_ostream &OS, bool PrintType = true);
409409

lib/SIL/IR/SILPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2461,7 +2461,7 @@ void SILBasicBlock::print(raw_ostream &OS) const {
24612461
SILPrinter(Ctx).print(this);
24622462
}
24632463

2464-
void SILBasicBlock::print(raw_ostream &OS, SILPrintContext &Ctx) const {
2464+
void SILBasicBlock::print(SILPrintContext &Ctx) const {
24652465
SILPrinter(Ctx).print(this);
24662466
}
24672467

lib/SILOptimizer/Transforms/RedundantLoadElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ void RLEContext::processBasicBlocksForGenKillSet() {
13931393
for (SILBasicBlock *BB : PO->getReversePostOrder()) {
13941394
LLVM_DEBUG(llvm::dbgs() << "PROCESS " << printCtx.getID(BB)
13951395
<< " for Gen/Kill:\n";
1396-
BB->print(llvm::dbgs(), printCtx));
1396+
BB->print(printCtx));
13971397

13981398
BlockState &S = getBlockState(BB);
13991399

0 commit comments

Comments
 (0)