1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[StackSafety] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-01-25 19:23:59 -08:00
parent e1d3feee84
commit 23ef7e2902

View File

@ -13,6 +13,7 @@
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/raw_ostream.h"
@ -168,16 +169,9 @@ public:
static inline raw_ostream &operator<<(raw_ostream &OS, const BitVector &V) {
OS << "{";
int Idx = V.find_first();
bool First = true;
while (Idx >= 0) {
if (!First) {
OS << ", ";
}
First = false;
OS << Idx;
Idx = V.find_next(Idx);
}
ListSeparator LS;
for (int Idx = V.find_first(); Idx >= 0; Idx = V.find_next(Idx))
OS << LS << Idx;
OS << "}";
return OS;
}