diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-15 16:35:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-15 16:35:29 +0000 |
commit | 65f57c233cd4499e2e8b52a503201e64edfd6a9e (patch) | |
tree | af96a9f73e7b0060483af26b6f3e1a6210677b67 /tools/llvm-ld/Optimize.cpp | |
parent | 6ca5f9360ce657c1ab382605536751d33c1d138a (diff) |
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/llvm-ld/Optimize.cpp')
-rw-r--r-- | tools/llvm-ld/Optimize.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvm-ld/Optimize.cpp b/tools/llvm-ld/Optimize.cpp index e4668958db..7001064659 100644 --- a/tools/llvm-ld/Optimize.cpp +++ b/tools/llvm-ld/Optimize.cpp @@ -18,6 +18,7 @@ #include "llvm/Analysis/Verifier.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/StandardPasses.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/System/DynamicLibrary.h" #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetMachine.h" @@ -109,8 +110,8 @@ void Optimize(Module* M) { if (Opt->getNormalCtor()) addPass(Passes, Opt->getNormalCtor()()); else - std::cerr << "llvm-ld: cannot create pass: " << Opt->getPassName() - << "\n"; + errs() << "llvm-ld: cannot create pass: " << Opt->getPassName() + << "\n"; } // The user's passes may leave cruft around. Clean up after them them but |