File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,12 @@ class SILDebugScope : public SILAllocated<SILDebugScope> {
88
88
return callSite;
89
89
}
90
90
91
+ #ifndef NDEBUG
91
92
void print (SourceManager &SM, llvm::raw_ostream &OS = llvm::errs(),
92
93
unsigned Indent = 0) const ;
93
94
94
95
void print (SILModule &Mod) const ;
96
+ #endif
95
97
};
96
98
97
99
// / Determine whether an instruction may not have a SILDebugScope.
Original file line number Diff line number Diff line change @@ -5845,12 +5845,16 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5845
5845
if (DS != LastSeenScope) {
5846
5846
llvm::errs () << " Broken instruction!\n " ;
5847
5847
SI.dump ();
5848
+ #ifndef NDEBUG
5848
5849
llvm::errs () << " in scope\n " ;
5849
5850
DS->print (SI.getFunction ()->getModule ());
5851
+ #endif
5850
5852
llvm::errs () << " Previous, non-contiguous scope set by" ;
5851
5853
LastSeenScopeInst->dump ();
5854
+ #ifndef NDEBUG
5852
5855
llvm::errs () << " in scope\n " ;
5853
5856
LastSeenScope->print (SI.getFunction ()->getModule ());
5857
+ #endif
5854
5858
llvm::errs () << " Please report a bug on bugs.swift.org\n " ;
5855
5859
llvm::errs () <<
5856
5860
" Pass -Xllvm -verify-di-holes=false to disable the verification\n " ;
You can’t perform that action at this time.
0 commit comments