Skip to content

Commit db553f2

Browse files
committed
[NFC] Remove ostream argument from SILBasicBlock::print.
The first argument, OS, was never used in the SILBasicBlock::print method. Keeping it would be misleading.
1 parent 554cbda commit db553f2

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
@@ -2452,7 +2452,7 @@ void SILBasicBlock::print(raw_ostream &OS) const {
24522452
SILPrinter(Ctx).print(this);
24532453
}
24542454

2455-
void SILBasicBlock::print(raw_ostream &OS, SILPrintContext &Ctx) const {
2455+
void SILBasicBlock::print(SILPrintContext &Ctx) const {
24562456
SILPrinter(Ctx).print(this);
24572457
}
24582458

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)