[llvm-commits] CVS: llvm/tools/bugpoint/ExecutionDriver.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 18 16:02:01 PST 2004
Changes in directory llvm/tools/bugpoint:
ExecutionDriver.cpp updated: 1.36 -> 1.37
---
Log message:
Make the executeProgram method exception safe, not leaving around bytecode
files.
---
Diffs of the changes: (+3 -3)
Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.36 llvm/tools/bugpoint/ExecutionDriver.cpp:1.37
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.36 Wed Feb 18 14:52:02 2004
+++ llvm/tools/bugpoint/ExecutionDriver.cpp Wed Feb 18 16:01:21 2004
@@ -162,6 +162,9 @@
CreatedBytecode = true;
}
+ // Remove the temporary bytecode file when we are done.
+ FileRemover BytecodeFileRemover(BytecodeFile, CreatedBytecode);
+
if (OutputFile.empty()) OutputFile = "bugpoint-execution-output";
// Check to see if this is a valid output filename...
@@ -178,9 +181,6 @@
if (ProgramExitedNonzero != 0)
*ProgramExitedNonzero = (RetVal != 0);
-
- // Remove the temporary bytecode file.
- if (CreatedBytecode) removeFile(BytecodeFile);
// Return the filename we captured the output to.
return OutputFile;
More information about the llvm-commits
mailing list