mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Add save-temps option to bugpoint to keep temporary stuff.
Patch by Sandeep Patel git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -288,7 +288,7 @@ void BugDriver::compileProgram(Module *M) {
|
||||
}
|
||||
|
||||
// Remove the temporary bitcode file when we are done.
|
||||
FileRemover BitcodeFileRemover(BitcodeFile);
|
||||
FileRemover BitcodeFileRemover(BitcodeFile, !SaveTemps);
|
||||
|
||||
// Actually compile the program!
|
||||
Interpreter->compileProgram(BitcodeFile.toString());
|
||||
@@ -328,7 +328,7 @@ std::string BugDriver::executeProgram(std::string OutputFile,
|
||||
|
||||
// Remove the temporary bitcode file when we are done.
|
||||
sys::Path BitcodePath (BitcodeFile);
|
||||
FileRemover BitcodeFileRemover(BitcodePath, CreatedBitcode);
|
||||
FileRemover BitcodeFileRemover(BitcodePath, CreatedBitcode && !SaveTemps);
|
||||
|
||||
if (OutputFile.empty()) OutputFile = "bugpoint-execution-output";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user