mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-07 01:38:26 +00:00
Fix bugpoint execution/reference output file name
sys::fs::unique_file will now loop infinitely if provided with a file name without '%' characters and the input file already exists. As a result, bugpoint cannot use a fixed file name for the execution output (including the reference output). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b0f11e3701
commit
e528a2c21a
@ -191,7 +191,7 @@ public:
|
||||
/// this function.
|
||||
///
|
||||
bool createReferenceFile(Module *M, const std::string &Filename
|
||||
= "bugpoint.reference.out");
|
||||
= "bugpoint.reference.out-%%%%%%%");
|
||||
|
||||
/// diffProgram - This method executes the specified module and diffs the
|
||||
/// output against the file specified by ReferenceOutputFile. If the output
|
||||
|
@ -328,7 +328,7 @@ std::string BugDriver::executeProgram(const Module *Program,
|
||||
FileRemover BitcodeFileRemover(BitcodePath,
|
||||
CreatedBitcode && !SaveTemps);
|
||||
|
||||
if (OutputFile.empty()) OutputFile = OutputPrefix + "-execution-output";
|
||||
if (OutputFile.empty()) OutputFile = OutputPrefix + "-execution-output-%%%%%%%";
|
||||
|
||||
// Check to see if this is a valid output filename...
|
||||
SmallString<128> UniqueFile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user