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/bugpoint/bugpoint.cpp | |
parent | 6ca5f9360ce657c1ab382605536751d33c1d138a (diff) | |
download | llvm-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/bugpoint/bugpoint.cpp')
-rw-r--r-- | tools/bugpoint/bugpoint.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp index 3365b227b1..49e0daee6a 100644 --- a/tools/bugpoint/bugpoint.cpp +++ b/tools/bugpoint/bugpoint.cpp @@ -87,20 +87,20 @@ int main(int argc, char **argv) { try { return D.run(); } catch (ToolExecutionError &TEE) { - std::cerr << "Tool execution error: " << TEE.what() << '\n'; + errs() << "Tool execution error: " << TEE.what() << '\n'; } catch (const std::string& msg) { - std::cerr << argv[0] << ": " << msg << "\n"; + errs() << argv[0] << ": " << msg << "\n"; } catch (const std::bad_alloc &e) { - std::cerr << "Oh no, a bugpoint process ran out of memory!\n" - "To increase the allocation limits for bugpoint child\n" - "processes, use the -mlimit option.\n"; + errs() << "Oh no, a bugpoint process ran out of memory!\n" + "To increase the allocation limits for bugpoint child\n" + "processes, use the -mlimit option.\n"; } catch (const std::exception &e) { - std::cerr << "Whoops, a std::exception leaked out of bugpoint: " - << e.what() << "\n" - << "This is a bug in bugpoint!\n"; + errs() << "Whoops, a std::exception leaked out of bugpoint: " + << e.what() << "\n" + << "This is a bug in bugpoint!\n"; } catch (...) { - std::cerr << "Whoops, an exception leaked out of bugpoint. " - << "This is a bug in bugpoint!\n"; + errs() << "Whoops, an exception leaked out of bugpoint. " + << "This is a bug in bugpoint!\n"; } return 1; } |