Changes in directory llvm/include/llvm/ADT:
BitSetVector.h updated: 1.15 -> 1.16 --- Log message: Added a temporary hack to get the llvm-streams to work for future checkins. --- Diffs of the changes: (+8 -0) BitSetVector.h | 8 ++++++++ 1 files changed, 8 insertions(+) Index: llvm/include/llvm/ADT/BitSetVector.h diff -u llvm/include/llvm/ADT/BitSetVector.h:1.15 llvm/include/llvm/ADT/BitSetVector.h:1.16 --- llvm/include/llvm/ADT/BitSetVector.h:1.15 Wed Feb 22 10:23:42 2006 +++ llvm/include/llvm/ADT/BitSetVector.h Tue Nov 28 16:21:29 2006 @@ -25,6 +25,7 @@ #ifndef LLVM_ADT_BITSETVECTOR_H #define LLVM_ADT_BITSETVECTOR_H +#include "llvm/Support/Streams.h" #include <bitset> #include <vector> #include <functional> @@ -173,6 +174,9 @@ /// /// Printing and debugging support /// + void print(llvm_ostream &O) const { + if (O.stream()) print(*O.stream()); + } void print(std::ostream &O) const; void dump() const { print(std::cerr); } @@ -248,6 +252,10 @@ O << "<" << (*I) << ">" << (I+1 == E? "\n" : ", "); } +inline llvm_ostream& operator<< (llvm_ostream& O, const BitSetVector& bset) { + bset.print(O); + return O; +} inline std::ostream& operator<< (std::ostream& O, const BitSetVector& bset) { bset.print(O); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits