Add new method
[oota-llvm.git] / tools / bugpoint / BugDriver.h
index a4428cffea976980942d8b48e26fe686b05df66d..b1cc3e830ba155f59e975f61e35316bd4b691c8c 100644 (file)
@@ -190,6 +190,11 @@ public:
   /// program or if the loop extractor crashes.
   Module *ExtractLoop(Module *M);
 
+  /// runPassesOn - Carefully run the specified set of pass on the specified
+  /// module, returning the transformed module on success, or a null pointer on
+  /// failure.
+  Module *runPassesOn(Module *M, const std::vector<const PassInfo*> &Passes);
+
   /// runPasses - Run the specified passes on Program, outputting a bytecode
   /// file and writting the filename into OutputFile if successful.  If the
   /// optimizations fail for some reason (optimizer crashes), return true,