summaryrefslogtreecommitdiff
path: root/tools/opt/AnalysisWrappers.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-15 16:35:29 +0000
committerDan Gohman <gohman@apple.com>2009-07-15 16:35:29 +0000
commit65f57c233cd4499e2e8b52a503201e64edfd6a9e (patch)
treeaf96a9f73e7b0060483af26b6f3e1a6210677b67 /tools/opt/AnalysisWrappers.cpp
parent6ca5f9360ce657c1ab382605536751d33c1d138a (diff)
downloadllvm-65f57c233cd4499e2e8b52a503201e64edfd6a9e.tar.gz
llvm-65f57c233cd4499e2e8b52a503201e64edfd6a9e.tar.bz2
llvm-65f57c233cd4499e2e8b52a503201e64edfd6a9e.tar.xz
Use errs() instead of std::cerr.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/AnalysisWrappers.cpp')
-rw-r--r--tools/opt/AnalysisWrappers.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp
index 631a0ddbfb..2ab69ea61e 100644
--- a/tools/opt/AnalysisWrappers.cpp
+++ b/tools/opt/AnalysisWrappers.cpp
@@ -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;
}
}