From fcf17a30961ac3dfee893c323f7b9ae5fe012957 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 3 Jan 2007 22:37:27 +0000 Subject: 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 --- lib/Support/Debug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Support/Debug.cpp') diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index 6e67ed8f67..c5b6fa2bf4 100644 --- a/lib/Support/Debug.cpp +++ b/lib/Support/Debug.cpp @@ -69,8 +69,9 @@ bool llvm::isCurrentDebugType(const char *DebugType) { // program from having to have hundreds of static c'tor/d'tors for them. // OStream &llvm::getErrorOutputStream(const char *DebugType) { + static OStream cnoout(0); if (DebugFlag && isCurrentDebugType(DebugType)) return cerr; else - return cnull; + return cnoout; } -- cgit v1.2.3-18-g5258