diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-07-31 14:34:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-07-31 14:34:49 +0000 |
commit | 13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d (patch) | |
tree | 1b59d76120280dce9e721001180abfc53300b813 /tools/bugpoint/ExecutionDriver.cpp | |
parent | 0114b9990ae11d49356513e781a375803df95208 (diff) | |
download | external_llvm-13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d.zip external_llvm-13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d.tar.gz external_llvm-13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d.tar.bz2 |
Add const to some methods and change TestMergedProgram to return the merged
module and take a const BugDriver.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 01dd379..28f61c8 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -325,7 +325,7 @@ std::string BugDriver::executeProgram(const Module *Program, std::string BitcodeFile, const std::string &SharedObj, AbstractInterpreter *AI, - std::string *Error) { + std::string *Error) const { if (AI == 0) AI = Interpreter; assert(AI && "Interpreter should have been created already!"); bool CreatedBitcode = false; @@ -402,7 +402,7 @@ std::string BugDriver::executeProgram(const Module *Program, /// std::string BugDriver::executeProgramSafely(const Module *Program, std::string OutputFile, - std::string *Error) { + std::string *Error) const { return executeProgram(Program, OutputFile, "", "", SafeInterpreter, Error); } @@ -466,7 +466,7 @@ bool BugDriver::diffProgram(const Module *Program, const std::string &BitcodeFile, const std::string &SharedObject, bool RemoveBitcode, - std::string *ErrMsg) { + std::string *ErrMsg) const { // Execute the program, generating an output file... sys::Path Output(executeProgram(Program, "", BitcodeFile, SharedObject, 0, ErrMsg)); |