[llvm-commits] CVS: llvm/include/llvm/Support/Debug.h Streams.h
Bill Wendling
isanbard at gmail.com
Wed Jan 3 14:37:46 PST 2007
Changes in directory llvm/include/llvm/Support:
Debug.h updated: 1.13 -> 1.14
Streams.h updated: 1.7 -> 1.8
---
Log message:
The previous implementation of LLVM Streams wasn't removing symbols. This
one should.
---
Diffs of the changes: (+1 -7)
Debug.h | 2 +-
Streams.h | 6 ------
2 files changed, 1 insertion(+), 7 deletions(-)
Index: llvm/include/llvm/Support/Debug.h
diff -u llvm/include/llvm/Support/Debug.h:1.13 llvm/include/llvm/Support/Debug.h:1.14
--- llvm/include/llvm/Support/Debug.h:1.13 Sat Dec 16 23:15:12 2006
+++ llvm/include/llvm/Support/Debug.h Wed Jan 3 16:37:27 2007
@@ -68,7 +68,7 @@
OStream &getErrorOutputStream(const char *DebugType);
#ifdef NDEBUG
-#define DOUT cnull
+#define DOUT OStream(0)
#else
#define DOUT getErrorOutputStream(DEBUG_TYPE)
#endif
Index: llvm/include/llvm/Support/Streams.h
diff -u llvm/include/llvm/Support/Streams.h:1.7 llvm/include/llvm/Support/Streams.h:1.8
--- llvm/include/llvm/Support/Streams.h:1.7 Sat Dec 16 23:15:12 2006
+++ llvm/include/llvm/Support/Streams.h Wed Jan 3 16:37:27 2007
@@ -39,11 +39,6 @@
return *this;
}
-// inline BaseStream &operator << (std::ios &(*Func)(std::ios&)) {
-// if (Stream) *Stream << Func;
-// return *this;
-// }
-
template <typename Ty>
BaseStream &operator << (const Ty &Thing) {
if (Stream) *Stream << Thing;
@@ -68,7 +63,6 @@
typedef BaseStream<std::istream> IStream;
typedef BaseStream<std::stringstream> StringStream;
- extern OStream cnull;
extern OStream cout;
extern OStream cerr;
extern IStream cin;
More information about the llvm-commits
mailing list