File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 10
10
11
11
#include " llvm/ADT/SmallVector.h"
12
12
#include " llvm/ADT/Statistic.h"
13
+ #include " llvm/ADT/StringExtras.h"
13
14
#include " llvm/ADT/StringRef.h"
14
15
#include " llvm/Analysis/OptimizationRemarkEmitter.h"
15
16
#include " llvm/Analysis/ProfileSummaryInfo.h"
@@ -184,22 +185,14 @@ void LowerAllowCheckPass::printPipeline(
184
185
// correctness.
185
186
// TODO: print shorter output by combining adjacent runs, etc.
186
187
int i = 0 ;
187
- bool printed = false ;
188
+ ListSeparator LS ( " ; " ) ;
188
189
for (unsigned int cutoff : Opts.cutoffs ) {
189
- if (cutoff > 0 ) {
190
- if (printed)
191
- OS << " ;" ;
192
- OS << " cutoffs[" << i << " ]=" << cutoff;
193
- printed = true ;
194
- }
195
-
190
+ if (cutoff > 0 )
191
+ OS << LS << " cutoffs[" << i << " ]=" << cutoff;
196
192
i++;
197
193
}
198
- if (Opts.runtime_check ) {
199
- if (printed)
200
- OS << " ;" ;
201
- OS << " runtime_check=" << Opts.runtime_check ;
202
- }
194
+ if (Opts.runtime_check )
195
+ OS << LS << " runtime_check=" << Opts.runtime_check ;
203
196
204
197
OS << ' >' ;
205
198
}
You can’t perform that action at this time.
0 commit comments