mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
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
This commit is contained in:
parent
5106dcd078
commit
16350f8d00
@ -178,8 +178,7 @@ public:
|
|||||||
std::string executeProgram(std::string RequestedOutputFilename = "",
|
std::string executeProgram(std::string RequestedOutputFilename = "",
|
||||||
std::string Bitcode = "",
|
std::string Bitcode = "",
|
||||||
const std::string &SharedObjects = "",
|
const std::string &SharedObjects = "",
|
||||||
AbstractInterpreter *AI = 0,
|
AbstractInterpreter *AI = 0);
|
||||||
bool *ProgramExitedNonzero = 0);
|
|
||||||
|
|
||||||
/// executeProgramSafely - Used to create reference output with the "safe"
|
/// executeProgramSafely - Used to create reference output with the "safe"
|
||||||
/// backend, if reference output is not provided. If there is a problem with
|
/// backend, if reference output is not provided. If there is a problem with
|
||||||
|
@ -312,8 +312,7 @@ void BugDriver::compileProgram(Module *M) {
|
|||||||
std::string BugDriver::executeProgram(std::string OutputFile,
|
std::string BugDriver::executeProgram(std::string OutputFile,
|
||||||
std::string BitcodeFile,
|
std::string BitcodeFile,
|
||||||
const std::string &SharedObj,
|
const std::string &SharedObj,
|
||||||
AbstractInterpreter *AI,
|
AbstractInterpreter *AI) {
|
||||||
bool *ProgramExitedNonzero) {
|
|
||||||
if (AI == 0) AI = Interpreter;
|
if (AI == 0) AI = Interpreter;
|
||||||
assert(AI && "Interpreter should have been created already!");
|
assert(AI && "Interpreter should have been created already!");
|
||||||
bool CreatedBitcode = false;
|
bool CreatedBitcode = false;
|
||||||
@ -379,9 +378,6 @@ std::string BugDriver::executeProgram(std::string OutputFile,
|
|||||||
outFile.close();
|
outFile.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ProgramExitedNonzero != 0)
|
|
||||||
*ProgramExitedNonzero = (RetVal != 0);
|
|
||||||
|
|
||||||
// Return the filename we captured the output to.
|
// Return the filename we captured the output to.
|
||||||
return OutputFile;
|
return OutputFile;
|
||||||
}
|
}
|
||||||
@ -390,9 +386,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
|
|||||||
/// backend, if reference output is not provided.
|
/// backend, if reference output is not provided.
|
||||||
///
|
///
|
||||||
std::string BugDriver::executeProgramSafely(std::string OutputFile) {
|
std::string BugDriver::executeProgramSafely(std::string OutputFile) {
|
||||||
bool ProgramExitedNonzero;
|
std::string outFN = executeProgram(OutputFile, "", "", SafeInterpreter);
|
||||||
std::string outFN = executeProgram(OutputFile, "", "", SafeInterpreter,
|
|
||||||
&ProgramExitedNonzero);
|
|
||||||
return outFN;
|
return outFN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -449,11 +443,8 @@ bool BugDriver::createReferenceFile(Module *M, const std::string &Filename) {
|
|||||||
bool BugDriver::diffProgram(const std::string &BitcodeFile,
|
bool BugDriver::diffProgram(const std::string &BitcodeFile,
|
||||||
const std::string &SharedObject,
|
const std::string &SharedObject,
|
||||||
bool RemoveBitcode) {
|
bool RemoveBitcode) {
|
||||||
bool ProgramExitedNonzero;
|
|
||||||
|
|
||||||
// Execute the program, generating an output file...
|
// Execute the program, generating an output file...
|
||||||
sys::Path Output(executeProgram("", BitcodeFile, SharedObject, 0,
|
sys::Path Output(executeProgram("", BitcodeFile, SharedObject, 0));
|
||||||
&ProgramExitedNonzero));
|
|
||||||
|
|
||||||
std::string Error;
|
std::string Error;
|
||||||
bool FilesDifferent = false;
|
bool FilesDifferent = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user