Use errs() instead of std::cerr.
[oota-llvm.git] / tools / opt / AnalysisWrappers.cpp
index 631a0ddbfb1949c11219a1ae22f0053ad03c5c5e..2ab69ea61e744a08a28acda13142d0cd2877847d 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/Pass.h"
 #include "llvm/Support/CallSite.h"
 #include "llvm/Analysis/CallGraph.h"
+#include "llvm/Support/raw_ostream.h"
 #include <iostream>
 using namespace llvm;
 
@@ -45,10 +46,10 @@ namespace {
                        E = CS.arg_end(); AI != E; ++AI)
                   if (isa<Constant>(*AI)) {
                     if (!PrintedFn) {
-                      std::cerr << "Function '" << I->getName() << "':\n";
+                      errs() << "Function '" << I->getName() << "':\n";
                       PrintedFn = true;
                     }
-                    std::cerr << *User;
+                    errs() << *User;
                     break;
                   }
               }