summaryrefslogtreecommitdiff
path: root/tools/bugpoint/ExecutionDriver.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-08-05 09:32:10 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-08-05 09:32:10 +0000
commit86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74 (patch)
treef25de9e525ab1dc0333f3f3d13e774fb797bd5fe /tools/bugpoint/ExecutionDriver.cpp
parent0802a1e1e8e1b9746996f2b1441a63378b83c354 (diff)
downloadllvm-86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74.tar.gz
llvm-86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74.tar.bz2
llvm-86c006a971eb6fab6bd4923ff7ec1c0bc9c28f74.tar.xz
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
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index 4122c9507c..ceaf8f498b 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -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";