File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
llvm/include/llvm/Analysis Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 13
13
#include " llvm/ADT/BitVector.h"
14
14
#include " llvm/ADT/DenseMap.h"
15
15
#include " llvm/ADT/SmallVector.h"
16
+ #include " llvm/ADT/StringExtras.h"
16
17
#include " llvm/IR/IntrinsicInst.h"
17
18
#include " llvm/IR/PassManager.h"
18
19
#include " llvm/Support/raw_ostream.h"
@@ -168,16 +169,9 @@ class StackLifetime {
168
169
169
170
static inline raw_ostream &operator <<(raw_ostream &OS, const BitVector &V) {
170
171
OS << " {" ;
171
- int Idx = V.find_first ();
172
- bool First = true ;
173
- while (Idx >= 0 ) {
174
- if (!First) {
175
- OS << " , " ;
176
- }
177
- First = false ;
178
- OS << Idx;
179
- Idx = V.find_next (Idx);
180
- }
172
+ ListSeparator LS;
173
+ for (int Idx = V.find_first (); Idx >= 0 ; Idx = V.find_next (Idx))
174
+ OS << LS << Idx;
181
175
OS << " }" ;
182
176
return OS;
183
177
}
You can’t perform that action at this time.
0 commit comments