#include <iostream> is forbidden. Remove it in favor of raw_ostream.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74507 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CompilerDriver/Main.cpp b/lib/CompilerDriver/Main.cpp
index 3a29170..c9c0413 100644
--- a/lib/CompilerDriver/Main.cpp
+++ b/lib/CompilerDriver/Main.cpp
@@ -16,9 +16,9 @@
 #include "llvm/CompilerDriver/Error.h"
 #include "llvm/CompilerDriver/Plugin.h"
 
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/System/Path.h"
 
-#include <iostream>
 #include <stdexcept>
 #include <string>
 
@@ -91,7 +91,7 @@
     if (CheckGraph) {
       int ret = graph.Check();
       if (!ret)
-        std::cerr << "check-graph: no errors found.\n";
+        llvm::errs() << "check-graph: no errors found.\n";
 
       return ret;
     }
@@ -119,10 +119,10 @@
     return ec.code();
   }
   catch(const std::exception& ex) {
-    std::cerr << argv[0] << ": " << ex.what() << '\n';
+    llvm::errs() << argv[0] << ": " << ex.what() << '\n';
   }
   catch(...) {
-    std::cerr << argv[0] << ": unknown error!\n";
+    llvm::errs() << argv[0] << ": unknown error!\n";
   }
   return 1;
 }