summaryrefslogtreecommitdiff
path: root/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-04-10 23:18:13 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-04-10 23:18:13 +0000
commit16350f8d00fc3a4a8d2da8a746a29979505af9a8 (patch)
treeb702e1eb9277b5f8e3b2ee5f7bc73ede9ad27f74 /tools/bugpoint/ExecutionDriver.cpp
parent5106dcd078832ae20e285081a25bb79ec85eae6a (diff)
downloadllvm-16350f8d00fc3a4a8d2da8a746a29979505af9a8.tar.gz
llvm-16350f8d00fc3a4a8d2da8a746a29979505af9a8.tar.bz2
llvm-16350f8d00fc3a4a8d2da8a746a29979505af9a8.tar.xz
Remove dead argument and clean whitespace. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index 7228c01567..3b93a1a322 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -312,8 +312,7 @@ void BugDriver::compileProgram(Module *M) {
std::string BugDriver::executeProgram(std::string OutputFile,
std::string BitcodeFile,
const std::string &SharedObj,
- AbstractInterpreter *AI,
- bool *ProgramExitedNonzero) {
+ AbstractInterpreter *AI) {
if (AI == 0) AI = Interpreter;
assert(AI && "Interpreter should have been created already!");
bool CreatedBitcode = false;
@@ -337,7 +336,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
}
// Remove the temporary bitcode file when we are done.
- sys::Path BitcodePath (BitcodeFile);
+ sys::Path BitcodePath(BitcodeFile);
FileRemover BitcodeFileRemover(BitcodePath, CreatedBitcode && !SaveTemps);
if (OutputFile.empty()) OutputFile = OutputPrefix + "-execution-output";
@@ -379,9 +378,6 @@ std::string BugDriver::executeProgram(std::string OutputFile,
outFile.close();
}
- if (ProgramExitedNonzero != 0)
- *ProgramExitedNonzero = (RetVal != 0);
-
// Return the filename we captured the output to.
return OutputFile;
}
@@ -390,9 +386,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
/// backend, if reference output is not provided.
///
std::string BugDriver::executeProgramSafely(std::string OutputFile) {
- bool ProgramExitedNonzero;
- std::string outFN = executeProgram(OutputFile, "", "", SafeInterpreter,
- &ProgramExitedNonzero);
+ std::string outFN = executeProgram(OutputFile, "", "", SafeInterpreter);
return outFN;
}
@@ -449,11 +443,8 @@ bool BugDriver::createReferenceFile(Module *M, const std::string &Filename) {
bool BugDriver::diffProgram(const std::string &BitcodeFile,
const std::string &SharedObject,
bool RemoveBitcode) {
- bool ProgramExitedNonzero;
-
// Execute the program, generating an output file...
- sys::Path Output(executeProgram("", BitcodeFile, SharedObject, 0,
- &ProgramExitedNonzero));
+ sys::Path Output(executeProgram("", BitcodeFile, SharedObject, 0));
std::string Error;
bool FilesDifferent = false;