diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-04-10 23:18:13 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-04-10 23:18:13 +0000 |
commit | 3e24f7e6321c986a9d9dfacaaf97f3e37f7e97d3 (patch) | |
tree | fd61e8931abcc1a9d1a2eccb38e9a591fffbc9ef /llvm/tools | |
parent | 0b5522114ef9560c14a762c2c13ccdaf01ec13a8 (diff) | |
download | bcm5719-llvm-3e24f7e6321c986a9d9dfacaaf97f3e37f7e97d3.tar.gz bcm5719-llvm-3e24f7e6321c986a9d9dfacaaf97f3e37f7e97d3.zip |
Remove dead argument and clean whitespace. No functionality change.
llvm-svn: 100954
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.h | 3 | ||||
-rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 17 | ||||
-rw-r--r-- | llvm/tools/bugpoint/FindBugs.cpp | 2 |
3 files changed, 6 insertions, 16 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h index abc249868de..819cc9834a0 100644 --- a/llvm/tools/bugpoint/BugDriver.h +++ b/llvm/tools/bugpoint/BugDriver.h @@ -178,8 +178,7 @@ public: std::string executeProgram(std::string RequestedOutputFilename = "", std::string Bitcode = "", const std::string &SharedObjects = "", - AbstractInterpreter *AI = 0, - bool *ProgramExitedNonzero = 0); + AbstractInterpreter *AI = 0); /// executeProgramSafely - Used to create reference output with the "safe" /// backend, if reference output is not provided. If there is a problem with diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 7228c01567a..3b93a1a3224 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/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; diff --git a/llvm/tools/bugpoint/FindBugs.cpp b/llvm/tools/bugpoint/FindBugs.cpp index 2c11d29f60d..b27a25c27ae 100644 --- a/llvm/tools/bugpoint/FindBugs.cpp +++ b/llvm/tools/bugpoint/FindBugs.cpp @@ -57,7 +57,7 @@ bool BugDriver::runManyPasses(const std::vector<const PassInfo*> &AllPasses) { // outs() << "Running selected passes on program to test for crash: "; for(int i = 0, e = PassesToRun.size(); i != e; i++) { - outs() << "-" << PassesToRun[i]->getPassArgument( )<< " "; + outs() << "-" << PassesToRun[i]->getPassArgument() << " "; } std::string Filename; |