diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-16 15:30:09 +0000 |
commit | ee05152cfa17c2f746134d46f045ef751510abdb (patch) | |
tree | 63c5c577f09472c8614c09312eac58786bc89b7e /llvm/tools/llvm-as | |
parent | f199ad6ebc57e3312a41d8750b8621b985cbb25a (diff) | |
download | bcm5719-llvm-ee05152cfa17c2f746134d46f045ef751510abdb.tar.gz bcm5719-llvm-ee05152cfa17c2f746134d46f045ef751510abdb.zip |
Convert more tools code from cerr and cout to errs() and outs().
llvm-svn: 76070
Diffstat (limited to 'llvm/tools/llvm-as')
-rw-r--r-- | llvm/tools/llvm-as/llvm-as.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/tools/llvm-as/llvm-as.cpp b/llvm/tools/llvm-as/llvm-as.cpp index 100c5c0075d..942dbebfa17 100644 --- a/llvm/tools/llvm-as/llvm-as.cpp +++ b/llvm/tools/llvm-as/llvm-as.cpp @@ -24,7 +24,6 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/SourceMgr.h" -#include "llvm/Support/Streams.h" #include "llvm/Support/SystemUtils.h" #include "llvm/Support/raw_ostream.h" #include "llvm/System/Signals.h" @@ -73,14 +72,14 @@ int main(int argc, char **argv) { if (!DisableVerify) { std::string Err; if (verifyModule(*M.get(), ReturnStatusAction, &Err)) { - cerr << argv[0] - << ": assembly parsed, but does not verify as correct!\n"; - cerr << Err; + errs() << argv[0] + << ": assembly parsed, but does not verify as correct!\n"; + errs() << Err; return 1; } } - if (DumpAsm) cerr << "Here's the assembly:\n" << *M.get(); + if (DumpAsm) errs() << "Here's the assembly:\n" << *M.get(); if (OutputFilename != "") { // Specified an output filename? if (OutputFilename != "-") { // Not stdout? @@ -133,10 +132,10 @@ int main(int argc, char **argv) { if (Force || !CheckBitcodeOutputToConsole(Out,true)) WriteBitcodeToFile(M.get(), *Out); } catch (const std::string& msg) { - cerr << argv[0] << ": " << msg << "\n"; + errs() << argv[0] << ": " << msg << "\n"; exitCode = 1; } catch (...) { - cerr << argv[0] << ": Unexpected unknown exception occurred.\n"; + errs() << argv[0] << ": Unexpected unknown exception occurred.\n"; exitCode = 1; } |