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
@@ -3108,17 +3111,17 @@ void SILBasicBlock::print(SILPrintContext &Ctx) const {
3108
3111
}
3109
3112
3110
3113
#ifndef NDEBUG
3111
- void SILBasicBlock::dumpID () const {
3112
- printID (llvm::errs ());
3114
+ void SILBasicBlock::dumpID (bool newline ) const {
3115
+ printID (llvm::errs (), newline );
3113
3116
}
3114
3117
3115
- void SILBasicBlock::printID (llvm::raw_ostream &OS) const {
3118
+ void SILBasicBlock::printID (llvm::raw_ostream &OS, bool newline ) const {
3116
3119
SILPrintContext Ctx (OS);
3117
- printID (Ctx);
3120
+ printID (Ctx, newline );
3118
3121
}
3119
3122
3120
- void SILBasicBlock::printID (SILPrintContext &Ctx) const {
3121
- SILPrinter (Ctx).printID (this );
3123
+ void SILBasicBlock::printID (SILPrintContext &Ctx, bool newline ) const {
3124
+ SILPrinter (Ctx).printID (this , newline );
3122
3125
}
3123
3126
#endif
3124
3127
You can’t perform that action at this time.
0 commit comments