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 @@ -562,7 +562,6 @@ public SwiftObjectHeader {
562
562
563
563
void printAsOperand (raw_ostream &OS, bool PrintType = true );
564
564
565
- #ifndef NDEBUG
566
565
// / Print the ID of the block, bbN.
567
566
void dumpID (bool newline = true ) const ;
568
567
@@ -571,7 +570,6 @@ public SwiftObjectHeader {
571
570
572
571
// / Print the ID of the block with \p Ctx, bbN.
573
572
void printID (SILPrintContext &Ctx, bool newline = true ) const ;
574
- #endif
575
573
576
574
// / getSublistAccess() - returns pointer to member of instruction list
577
575
static InstListType SILBasicBlock::*getSublistAccess () {
Original file line number Diff line number Diff line change @@ -3227,20 +3227,30 @@ void SILBasicBlock::print(SILPrintContext &Ctx) const {
3227
3227
SILPrinter (Ctx).print (this );
3228
3228
}
3229
3229
3230
- #ifndef NDEBUG
3231
3230
void SILBasicBlock::dumpID (bool newline) const {
3231
+ #ifndef NDEBUG
3232
3232
printID (llvm::errs (), newline);
3233
+ #else
3234
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3235
+ #endif
3233
3236
}
3234
3237
3235
3238
void SILBasicBlock::printID (llvm::raw_ostream &OS, bool newline) const {
3239
+ #ifndef NDEBUG
3236
3240
SILPrintContext Ctx (OS);
3237
3241
printID (Ctx, newline);
3242
+ #else
3243
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3244
+ #endif
3238
3245
}
3239
3246
3240
3247
void SILBasicBlock::printID (SILPrintContext &Ctx, bool newline) const {
3248
+ #ifndef NDEBUG
3241
3249
SILPrinter (Ctx).printID (this , newline);
3242
- }
3250
+ #else
3251
+ llvm::errs () << " NOASSERTS" << (newline ? " \n " : " " );
3243
3252
#endif
3253
+ }
3244
3254
3245
3255
// / Pretty-print the SILFunction to errs.
3246
3256
void SILFunction::dump (bool Verbose) const {
You can’t perform that action at this time.
0 commit comments