File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,6 @@ public SwiftObjectHeader {
563
563
564
564
void printAsOperand (raw_ostream &OS, bool PrintType = true );
565
565
566
- #ifndef NDEBUG
567
566
// / Print the ID of the block, bbN.
568
567
void dumpID (bool newline = true ) const ;
569
568
@@ -572,7 +571,6 @@ public SwiftObjectHeader {
572
571
573
572
// / Print the ID of the block with \p Ctx, bbN.
574
573
void printID (SILPrintContext &Ctx, bool newline = true ) const ;
575
- #endif
576
574
577
575
// / getSublistAccess() - returns pointer to member of instruction list
578
576
static InstListType SILBasicBlock::*getSublistAccess () {
Original file line number Diff line number Diff line change @@ -3245,20 +3245,30 @@ void SILBasicBlock::print(SILPrintContext &Ctx) const {
3245
3245
SILPrinter (Ctx).print (this );
3246
3246
}
3247
3247
3248
- #ifndef NDEBUG
3249
3248
void SILBasicBlock::dumpID (bool newline) const {
3249
+ #ifndef NDEBUG
3250
3250
printID (llvm::errs (), newline);
3251
+ #else
3252
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3253
+ #endif
3251
3254
}
3252
3255
3253
3256
void SILBasicBlock::printID (llvm::raw_ostream &OS, bool newline) const {
3257
+ #ifndef NDEBUG
3254
3258
SILPrintContext Ctx (OS);
3255
3259
printID (Ctx, newline);
3260
+ #else
3261
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3262
+ #endif
3256
3263
}
3257
3264
3258
3265
void SILBasicBlock::printID (SILPrintContext &Ctx, bool newline) const {
3266
+ #ifndef NDEBUG
3259
3267
SILPrinter (Ctx).printID (this , newline);
3260
- }
3268
+ #else
3269
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3261
3270
#endif
3271
+ }
3262
3272
3263
3273
// / Pretty-print the SILFunction to errs.
3264
3274
void SILFunction::dump (bool Verbose) const {
You can’t perform that action at this time.
0 commit comments