Teach bugpoint to kill optimization passes that run over the timeout limit,
[oota-llvm.git] / tools / bugpoint / BugDriver.h
index 565a382d20a0e7fc95cbe6aebb5849e90f8a69e4..ec687b3c7bc0efb343927e1ae27a02fa95e5c7a7 100644 (file)
@@ -48,13 +48,14 @@ class BugDriver {
   CBE *cbe;
   GCC *gcc;
   bool run_as_child;
+  unsigned Timeout;
 
   // FIXME: sort out public/private distinctions...
   friend class ReducePassList;
   friend class ReduceMisCodegenFunctions;
 
 public:
-  BugDriver(const char *toolname, bool as_child);
+  BugDriver(const char *toolname, bool as_child, unsigned timeout);
 
   const std::string &getToolName() const { return ToolName; }