[llvm-commits] CVS: llvm/lib/Support/Debug.cpp Streams.cpp
Bill Wendling
isanbard at gmail.com
Wed Jan 3 14:37:46 PST 2007
Changes in directory llvm/lib/Support:
Debug.cpp updated: 1.11 -> 1.12
Streams.cpp updated: 1.3 -> 1.4
---
Log message:
The previous implementation of LLVM Streams wasn't removing symbols. This
one should.
---
Diffs of the changes: (+2 -2)
Debug.cpp | 3 ++-
Streams.cpp | 1 -
2 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Support/Debug.cpp
diff -u llvm/lib/Support/Debug.cpp:1.11 llvm/lib/Support/Debug.cpp:1.12
--- llvm/lib/Support/Debug.cpp:1.11 Sat Dec 16 23:15:13 2006
+++ llvm/lib/Support/Debug.cpp Wed Jan 3 16:37:27 2007
@@ -69,8 +69,9 @@
// 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;
}
Index: llvm/lib/Support/Streams.cpp
diff -u llvm/lib/Support/Streams.cpp:1.3 llvm/lib/Support/Streams.cpp:1.4
--- llvm/lib/Support/Streams.cpp:1.3 Sat Dec 16 23:15:13 2006
+++ llvm/lib/Support/Streams.cpp Wed Jan 3 16:37:27 2007
@@ -16,7 +16,6 @@
#include <iostream>
using namespace llvm;
-OStream llvm::cnull;
OStream llvm::cout(std::cout);
OStream llvm::cerr(std::cerr);
IStream llvm::cin(std::cin);
More information about the llvm-commits
mailing list