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 | 74d4527e4038bf0e9a0e11edf09adf80c38eed85 (patch) | |
tree | 6584fc0640f96ffb1dbe9cc8caf2b989943d6889 /tools | |
parent | c064e8930f15ef81c7734d30169c0f445a929722 (diff) | |
download | external_llvm-74d4527e4038bf0e9a0e11edf09adf80c38eed85.zip external_llvm-74d4527e4038bf0e9a0e11edf09adf80c38eed85.tar.gz external_llvm-74d4527e4038bf0e9a0e11edf09adf80c38eed85.tar.bz2 |
Bugpoint will be throwing exceptions soon, perpare for the worst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/bugpoint.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp index 9bca7fd..779359e 100644 --- a/tools/bugpoint/bugpoint.cpp +++ b/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; + } } |