summaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-01-03 22:37:27 +0000
committerBill Wendling <isanbard@gmail.com>2007-01-03 22:37:27 +0000
commitfcf17a30961ac3dfee893c323f7b9ae5fe012957 (patch)
treef639b7fb6cb5751b76f837dd45ddca357b6e72e2 /include/llvm/Support
parent118dfcd03a92a912e55bb33d14f302175ef6c5ee (diff)
downloadllvm-fcf17a30961ac3dfee893c323f7b9ae5fe012957.tar.gz
llvm-fcf17a30961ac3dfee893c323f7b9ae5fe012957.tar.bz2
llvm-fcf17a30961ac3dfee893c323f7b9ae5fe012957.tar.xz
The previous implementation of LLVM Streams wasn't removing symbols. This
one should. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/Debug.h2
-rw-r--r--include/llvm/Support/Streams.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/Support/Debug.h b/include/llvm/Support/Debug.h
index 627d088eb0..437e57ea07 100644
--- a/include/llvm/Support/Debug.h
+++ b/include/llvm/Support/Debug.h
@@ -68,7 +68,7 @@ bool isCurrentDebugType(const char *Type);
OStream &getErrorOutputStream(const char *DebugType);
#ifdef NDEBUG
-#define DOUT cnull
+#define DOUT OStream(0)
#else
#define DOUT getErrorOutputStream(DEBUG_TYPE)
#endif
diff --git a/include/llvm/Support/Streams.h b/include/llvm/Support/Streams.h
index f141c92a9f..4e1e4f3a26 100644
--- a/include/llvm/Support/Streams.h
+++ b/include/llvm/Support/Streams.h
@@ -39,11 +39,6 @@ namespace llvm {
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 @@ namespace llvm {
typedef BaseStream<std::istream> IStream;
typedef BaseStream<std::stringstream> StringStream;
- extern OStream cnull;
extern OStream cout;
extern OStream cerr;
extern IStream cin;