mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
Trivial change to dump() function for SparseBitVector
llvm-svn: 104433
This commit is contained in:
parent
241d2c434e
commit
cec9b7fc9c
@ -889,13 +889,17 @@ operator-(const SparseBitVector<ElementSize> &LHS,
|
||||
// Dump a SparseBitVector to a stream
|
||||
template <unsigned ElementSize>
|
||||
void dump(const SparseBitVector<ElementSize> &LHS, raw_ostream &out) {
|
||||
out << "[ ";
|
||||
out << "[";
|
||||
|
||||
typename SparseBitVector<ElementSize>::iterator bi;
|
||||
for (bi = LHS.begin(); bi != LHS.end(); ++bi) {
|
||||
out << *bi << " ";
|
||||
typename SparseBitVector<ElementSize>::iterator bi = LHS.begin(),
|
||||
be = LHS.end();
|
||||
if (bi != be) {
|
||||
out << *bi;
|
||||
for (++bi; bi != be; ++bi) {
|
||||
out << " " << *bi;
|
||||
}
|
||||
}
|
||||
out << " ]\n";
|
||||
out << "]\n";
|
||||
}
|
||||
} // end namespace llvm
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user