+static cl::opt<bool>
+StandardCompileOpts("std-compile-opts",
+ cl::desc("Include the standard compile time optimizations"));
+
+static cl::opt<bool>
+StandardLinkOpts("std-link-opts",
+ cl::desc("Include the standard link time optimizations"));
+
+static cl::opt<std::string>
+OverrideTriple("mtriple", cl::desc("Override target triple for module"));
+
+/// BugpointIsInterrupted - Set to true when the user presses ctrl-c.
+bool llvm::BugpointIsInterrupted = false;
+
+static void BugpointInterruptFunction() {
+ BugpointIsInterrupted = true;
+}
+
+// Hack to capture a pass list.
+namespace {
+ class AddToDriver : public PassManager {
+ BugDriver &D;
+ public:
+ AddToDriver(BugDriver &_D) : D(_D) {}
+
+ virtual void add(Pass *P) {
+ const PassInfo *PI = P->getPassInfo();
+ D.addPasses(&PI, &PI + 1);
+ }
+ };
+}
+