aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/BitSetVector.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 01:30:32 +0000
commite81561909d128c6e2d8033cb5465a49b2596b26a (patch)
tree6f2845604d482bc86d8d12aae500292c561d8cd7 /include/llvm/ADT/BitSetVector.h
parent85c671b90870705ba7e10baf99aa306c843f1325 (diff)
Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are
now cerr, cout, and NullStream resp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/BitSetVector.h')
-rw-r--r--include/llvm/ADT/BitSetVector.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/llvm/ADT/BitSetVector.h b/include/llvm/ADT/BitSetVector.h
index 67e3a52d6c..5d1fc86c3a 100644
--- a/include/llvm/ADT/BitSetVector.h
+++ b/include/llvm/ADT/BitSetVector.h
@@ -29,7 +29,6 @@
#include <bitset>
#include <vector>
#include <functional>
-#include <ostream>
namespace llvm {
@@ -174,11 +173,11 @@ public:
///
/// Printing and debugging support
///
- void print(llvm_ostream &O) const {
+ void print(OStream &O) const {
if (O.stream()) print(*O.stream());
}
void print(std::ostream &O) const;
- void dump() const { print(llvm_cerr); }
+ void dump() const { print(cerr); }
public:
//
@@ -235,6 +234,9 @@ public:
return (I.bitvec == bitvec &&
I.currentWord == currentWord && I.currentBit == currentBit);
}
+ bool operator!=(const iterator& I) {
+ return !(*this == I);
+ }
protected:
static iterator begin(BitSetVector& _bitvec) { return iterator(_bitvec); }
@@ -252,7 +254,7 @@ inline void BitSetVector::print(std::ostream& O) const
O << "<" << (*I) << ">" << (I+1 == E? "\n" : ", ");
}
-inline llvm_ostream& operator<< (llvm_ostream& O, const BitSetVector& bset) {
+inline OStream& operator<< (OStream& O, const BitSetVector& bset) {
bset.print(O);
return O;
}