diff options
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Support/Streams.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index 949e3d932a8..6e67ed8f673 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/lib/Support/Debug.cpp @@ -68,9 +68,9 @@ bool llvm::isCurrentDebugType(const char *DebugType) { // places the std::c* I/O streams into one .cpp file and relieves the whole // program from having to have hundreds of static c'tor/d'tors for them. // -OStream llvm::getErrorOutputStream(const char *DebugType) { +OStream &llvm::getErrorOutputStream(const char *DebugType) { if (DebugFlag && isCurrentDebugType(DebugType)) return cerr; else - return NullStream; + return cnull; } diff --git a/llvm/lib/Support/Streams.cpp b/llvm/lib/Support/Streams.cpp index 02aec1fff8a..3d20e9aea35 100644 --- a/llvm/lib/Support/Streams.cpp +++ b/llvm/lib/Support/Streams.cpp @@ -16,7 +16,7 @@ #include <iostream> using namespace llvm; -OStream llvm::NullStream; +OStream llvm::cnull; OStream llvm::cout(std::cout); OStream llvm::cerr(std::cerr); IStream llvm::cin(std::cin); |