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 | d8db3760716c395f3211ad6b2e37dbb279809378 (patch) | |
| tree | 310782dc48f8ef29c555690b23b249856937052a /llvm/tools/bugpoint/bugpoint.cpp | |
| parent | c1dd25da3102264f658017eeffdd61626231c3ec (diff) | |
| download | bcm5719-llvm-d8db3760716c395f3211ad6b2e37dbb279809378.tar.gz bcm5719-llvm-d8db3760716c395f3211ad6b2e37dbb279809378.zip | |
Use errs() instead of std::cerr.
llvm-svn: 75791
Diffstat (limited to 'llvm/tools/bugpoint/bugpoint.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/bugpoint.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/tools/bugpoint/bugpoint.cpp b/llvm/tools/bugpoint/bugpoint.cpp index 3365b227b1f..49e0daee6af 100644 --- a/llvm/tools/bugpoint/bugpoint.cpp +++ b/llvm/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; } |

