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:
Anton Korobeynikov
2009-08-05 09:32:10 +00:00
parent 0802a1e1e8
commit 86c006a971
4 changed files with 14 additions and 6 deletions
+2 -2
View File
@@ -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";