projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c064e89
)
Bugpoint will be throwing exceptions soon, perpare for the worst.
author
Chris Lattner
<sabre@nondot.org>
Wed, 18 Feb 2004 17:32:54 +0000
(17:32 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 18 Feb 2004 17:32:54 +0000
(17:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11584
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/bugpoint.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/bugpoint.cpp
b/tools/bugpoint/bugpoint.cpp
index 9bca7fd6fcb5c9edf2b42d05c6d035eea813decb..779359e73c52d073a59ae65447f4b8fe416918a2 100644
(file)
--- 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;
+ }
}