files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11607
91177308-0d34-0410-b5e6-
96231b3b80d8
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...
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;
}