summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-06-28 16:37:52 +0000
committerHal Finkel <hfinkel@anl.gov>2013-06-28 16:37:52 +0000
commite528a2c21a63a06c5e3cdf929000d77c59ac0937 (patch)
tree09a93c013fea670f0a5ab5c17fe072b11007abc6 /tools/bugpoint
parentb0f11e370141c98d24493760e72f9c0d6959150d (diff)
downloadllvm-e528a2c21a63a06c5e3cdf929000d77c59ac0937.tar.gz
llvm-e528a2c21a63a06c5e3cdf929000d77c59ac0937.tar.bz2
llvm-e528a2c21a63a06c5e3cdf929000d77c59ac0937.tar.xz
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
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/BugDriver.h2
-rw-r--r--tools/bugpoint/ExecutionDriver.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index bb15b79034..27b37f4dc6 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -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
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp
index 6edf2335f6..270dab2317 100644
--- a/tools/bugpoint/ExecutionDriver.cpp
+++ b/tools/bugpoint/ExecutionDriver.cpp
@@ -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;