File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -518,13 +518,13 @@ public SwiftObjectHeader {
518
518
519
519
#ifndef NDEBUG
520
520
// / Print the ID of the block, bbN.
521
- void dumpID () const ;
521
+ void dumpID (bool newline = true ) const ;
522
522
523
523
// / Print the ID of the block with \p OS, bbN.
524
- void printID (llvm::raw_ostream &OS) const ;
524
+ void printID (llvm::raw_ostream &OS, bool newline = true ) const ;
525
525
526
526
// / Print the ID of the block with \p Ctx, bbN.
527
- void printID (SILPrintContext &Ctx) const ;
527
+ void printID (SILPrintContext &Ctx, bool newline = true ) const ;
528
528
#endif
529
529
530
530
// / getSublistAccess() - returns pointer to member of instruction list
Original file line number Diff line number Diff line change @@ -853,8 +853,11 @@ class SILPrinter : public SILInstructionVisitor<SILPrinter> {
853
853
}
854
854
855
855
#ifndef NDEBUG
856
- void printID (const SILBasicBlock *BB) {
857
- *this << Ctx.getID (BB) << " \n " ;
856
+ void printID (const SILBasicBlock *BB, bool newline) {
857
+ *this << Ctx.getID (BB);
858
+ if (newline) {
859
+ *this << " \n " ;
860
+ }
858
861
}
859
862
#endif
860
863
@@ -3115,17 +3118,17 @@ void SILBasicBlock::print(SILPrintContext &Ctx) const {
3115
3118
}
3116
3119
3117
3120
#ifndef NDEBUG
3118
- void SILBasicBlock::dumpID () const {
3119
- printID (llvm::errs ());
3121
+ void SILBasicBlock::dumpID (bool newline ) const {
3122
+ printID (llvm::errs (), newline );
3120
3123
}
3121
3124
3122
- void SILBasicBlock::printID (llvm::raw_ostream &OS) const {
3125
+ void SILBasicBlock::printID (llvm::raw_ostream &OS, bool newline ) const {
3123
3126
SILPrintContext Ctx (OS);
3124
- printID (Ctx);
3127
+ printID (Ctx, newline );
3125
3128
}
3126
3129
3127
- void SILBasicBlock::printID (SILPrintContext &Ctx) const {
3128
- SILPrinter (Ctx).printID (this );
3130
+ void SILBasicBlock::printID (SILPrintContext &Ctx, bool newline ) const {
3131
+ SILPrinter (Ctx).printID (this , newline );
3129
3132
}
3130
3133
#endif
3131
3134
You can’t perform that action at this time.
0 commit comments