From 13793264e7cbf58e3b7b0cff3baac8e0b7a11a9d Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 31 Jul 2010 14:34:49 +0000 Subject: 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 --- tools/bugpoint/ExecutionDriver.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/bugpoint/ExecutionDriver.cpp') diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 01dd379f41..28f61c8fe6 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)); -- cgit v1.2.3