diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-01-03 22:37:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-01-03 22:37:27 +0000 |
commit | 4ec17c3951709eeae05d2e98edf72fa3fb0afe10 (patch) | |
tree | 85dd7547b2fdae09192701b897b965983809ac87 /llvm/lib/Support/Debug.cpp | |
parent | bf671f17cb2df1495d3d3ab32d61d1c03f00df14 (diff) | |
download | bcm5719-llvm-4ec17c3951709eeae05d2e98edf72fa3fb0afe10.tar.gz bcm5719-llvm-4ec17c3951709eeae05d2e98edf72fa3fb0afe10.zip |
The previous implementation of LLVM Streams wasn't removing symbols. This
one should.
llvm-svn: 32845
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index 6e67ed8f673..c5b6fa2bf44 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/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; } |