diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-02-18 17:32:54 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 17:32:54 +0000 |
| commit | eb89dbada8934db9dd7199c8641f609fd84cd171 (patch) | |
| tree | 338b1336e8c7462e1b08794207e1d435a24af7e9 /llvm/tools/bugpoint/bugpoint.cpp | |
| parent | d69c7bdc74a62eef46c742400c70bb0c7af70b4f (diff) | |
| download | bcm5719-llvm-eb89dbada8934db9dd7199c8641f609fd84cd171.tar.gz bcm5719-llvm-eb89dbada8934db9dd7199c8641f609fd84cd171.zip | |
Bugpoint will be throwing exceptions soon, perpare for the worst.
llvm-svn: 11584
Diffstat (limited to 'llvm/tools/bugpoint/bugpoint.cpp')
| -rw-r--r-- | llvm/tools/bugpoint/bugpoint.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/bugpoint.cpp b/llvm/tools/bugpoint/bugpoint.cpp index 9bca7fd6fcb..779359e73c5 100644 --- a/llvm/tools/bugpoint/bugpoint.cpp +++ b/llvm/tools/bugpoint/bugpoint.cpp @@ -18,7 +18,6 @@ #include "Support/CommandLine.h" #include "Config/unistd.h" #include <sys/resource.h> - using namespace llvm; static cl::list<std::string> @@ -51,5 +50,11 @@ int main(int argc, char **argv) { perror("setrlimit: RLIMIT_CORE"); } - return D.run(); + try { + return D.run(); + } catch (...) { + std::cerr << "Whoops, an exception leaked out of bugpoint. " + << "This is a bug in bugpoint!\n"; + return 1; + } } |

