summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-07-28 18:12:30 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-07-28 18:12:30 +0000
commit594994a34c5faaadd8b6d0f1e4f06e922857f652 (patch)
tree141913a43dd1adebd2435f0934d097cb3a4e6850 /llvm/tools/bugpoint/BugDriver.h
parent564798dfa94c7f33b3f5e8ae4a37b95c7e20e8d0 (diff)
downloadbcm5719-llvm-594994a34c5faaadd8b6d0f1e4f06e922857f652.tar.gz
bcm5719-llvm-594994a34c5faaadd8b6d0f1e4f06e922857f652.zip
Instead of abusing swapProgramIn, just add a Module argument to
EmitProgressBitcode. llvm-svn: 109602
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r--llvm/tools/bugpoint/BugDriver.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h
index 4f6bae5d5ab..6a7f47130a9 100644
--- a/llvm/tools/bugpoint/BugDriver.h
+++ b/llvm/tools/bugpoint/BugDriver.h
@@ -205,10 +205,11 @@ public:
bool RemoveBitcode = false,
std::string *Error = 0);
- /// EmitProgressBitcode - This function is used to output the current Program
- /// to a file named "bugpoint-ID.bc".
+ /// EmitProgressBitcode - This function is used to output M to a file named
+ /// "bugpoint-ID.bc".
///
- void EmitProgressBitcode(const std::string &ID, bool NoFlyer = false);
+ void EmitProgressBitcode(const Module *M, const std::string &ID,
+ bool NoFlyer = false);
/// deleteInstructionFromProgram - This method clones the current Program and
/// deletes the specified instruction from the cloned module. It then runs a
@@ -274,7 +275,7 @@ public:
/// writeProgramToFile - This writes the current "Program" to the named
/// bitcode file. If an error occurs, true is returned.
///
- bool writeProgramToFile(const std::string &Filename, Module *M = 0) const;
+ bool writeProgramToFile(const std::string &Filename, const Module *M) const;
private:
/// runPasses - Just like the method above, but this just returns true or
OpenPOWER on IntegriCloud