summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-14 21:17:03 +0000
committerChris Lattner <sabre@nondot.org>2004-03-14 21:17:03 +0000
commit3b6441e1050a9a2a55c79f58513191b3195fdaf7 (patch)
treecc0e85a78ee3f83f2b4b348cfbdf5c6a630f82f0 /tools/bugpoint/BugDriver.h
parentefdc0b505712d1ca4460def27e51c430f033d58d (diff)
downloadllvm-3b6441e1050a9a2a55c79f58513191b3195fdaf7.tar.gz
llvm-3b6441e1050a9a2a55c79f58513191b3195fdaf7.tar.bz2
llvm-3b6441e1050a9a2a55c79f58513191b3195fdaf7.tar.xz
Add new method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index a4428cffea..b1cc3e830b 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -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,