Move Print*Pass to use raw_ostream.

llvm-svn: 57946
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 358cbda..a339d31 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -30,6 +30,7 @@
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/Streams.h"
 #include "llvm/Support/SystemUtils.h"
+#include "llvm/Support/raw_ostream.h"
 #include "llvm/LinkAllPasses.h"
 #include "llvm/LinkAllVMCore.h"
 #include <iostream>
@@ -543,7 +544,7 @@
       }
       
       if (PrintEachXForm)
-        Passes.add(createPrintModulePass(&cerr));
+        Passes.add(createPrintModulePass(&errs()));
     }
     
     // If -std-compile-opts was specified at the end of the pass list, add them.