[llvm-commits] CVS: llvm/tools/bugpoint/bugpoint.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 18 11:34:02 PST 2004


Changes in directory llvm/tools/bugpoint:

bugpoint.cpp updated: 1.11 -> 1.12

---
Log message:

Bugpoint will be throwing exceptions soon, perpare for the worst.


---
Diffs of the changes:  (+7 -2)

Index: llvm/tools/bugpoint/bugpoint.cpp
diff -u llvm/tools/bugpoint/bugpoint.cpp:1.11 llvm/tools/bugpoint/bugpoint.cpp:1.12
--- llvm/tools/bugpoint/bugpoint.cpp:1.11	Tue Nov 11 16:41:34 2003
+++ llvm/tools/bugpoint/bugpoint.cpp	Wed Feb 18 11:32:54 2004
@@ -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 @@
     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;
+  }
 }





More information about the llvm-commits mailing list