Moved definition of llvm_ostream wrappers to the Streams.cpp file.
authorBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 09:54:47 +0000 (09:54 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 17 Nov 2006 09:54:47 +0000 (09:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31819 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Debug.cpp

index cbf12c7c0d72da10fae40a812cf366c847d199c2..9cea94c5471d5e2449be8777317da2771f44354f 100644 (file)
@@ -23,9 +23,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Support/Debug.h"
 #include "llvm/Support/CommandLine.h"
-#include <iostream>
+#include "llvm/Support/Debug.h"
 using namespace llvm;
 
 bool llvm::DebugFlag;  // DebugFlag - Exported boolean set by the -debug option
@@ -71,7 +70,7 @@ bool llvm::isCurrentDebugType(const char *DebugType) {
 // 
 llvm_ostream llvm::getErrorOutputStream(const char *DebugType) {
   if (DebugFlag && isCurrentDebugType(DebugType))
-    return llvm_ostream(std::cerr);
+    return llvm_cerr;
   else
-    return llvm_ostream();
+    return llvm_null;
 }