summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-08-05 00:29:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-08-05 00:29:04 +0000
commit315190b28c63daf0de54859e4bf543a5403da447 (patch)
tree7bbd9028a4e3624635b1c2c4debdeb7d7e701def /llvm/tools/bugpoint/BugDriver.h
parent1f78a9ad56d2bdbe9784703a8ea9dac8d41d80f3 (diff)
downloadbcm5719-llvm-315190b28c63daf0de54859e4bf543a5403da447.tar.gz
bcm5719-llvm-315190b28c63daf0de54859e4bf543a5403da447.zip
Make EmitProgressBitcode const and add a Module argument to runPasses. Use
that argument to simplify runPassesOn. llvm-svn: 110291
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r--llvm/tools/bugpoint/BugDriver.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h
index 19fc80b8741..819379d6e9c 100644
--- a/llvm/tools/bugpoint/BugDriver.h
+++ b/llvm/tools/bugpoint/BugDriver.h
@@ -213,7 +213,7 @@ public:
/// "bugpoint-ID.bc".
///
void EmitProgressBitcode(const Module *M, const std::string &ID,
- bool NoFlyer = false);
+ bool NoFlyer = false) const;
/// deleteInstructionFromProgram - This method clones the current Program and
/// deletes the specified instruction from the cloned module. It then runs a
@@ -261,7 +261,8 @@ public:
/// or failed, unless Quiet is set. ExtraArgs specifies additional arguments
/// to pass to the child bugpoint instance.
///
- bool runPasses(const std::vector<const PassInfo*> &PassesToRun,
+ bool runPasses(Module *Program,
+ const std::vector<const PassInfo*> &PassesToRun,
std::string &OutputFilename, bool DeleteOutput = false,
bool Quiet = false, unsigned NumExtraArgs = 0,
const char * const *ExtraArgs = NULL) const;
@@ -289,7 +290,7 @@ private:
bool runPasses(const std::vector<const PassInfo*> &PassesToRun,
bool DeleteOutput = true) const {
std::string Filename;
- return runPasses(PassesToRun, Filename, DeleteOutput);
+ return runPasses(Program, PassesToRun, Filename, DeleteOutput);
}
/// runAsChild - The actual "runPasses" guts that runs in a child process.
OpenPOWER on IntegriCloud