diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 01:53:08 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-15 01:53:08 +0000 |
commit | 30067f1eac9535b4a1379026ce0b56cd0f9144b5 (patch) | |
tree | ebdd4b4d3301625ae44f22b50bbc7da0baeffa44 /llvm/tools/bugpoint/OptimizerDriver.cpp | |
parent | 9329172767304f9f3e3df60e253d804e2a92361c (diff) | |
download | bcm5719-llvm-30067f1eac9535b4a1379026ce0b56cd0f9144b5.tar.gz bcm5719-llvm-30067f1eac9535b4a1379026ce0b56cd0f9144b5.zip |
For PR351:
* Convert use of getUniqueFilename to sys::Path::makeUnique();
llvm-svn: 18949
Diffstat (limited to 'llvm/tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/OptimizerDriver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/OptimizerDriver.cpp b/llvm/tools/bugpoint/OptimizerDriver.cpp index 097dd61df1d..d141bd0dabe 100644 --- a/llvm/tools/bugpoint/OptimizerDriver.cpp +++ b/llvm/tools/bugpoint/OptimizerDriver.cpp @@ -22,6 +22,7 @@ #include "llvm/Bytecode/WriteBytecodePass.h" #include "llvm/Target/TargetData.h" #include "llvm/Support/FileUtilities.h" +#include "llvm/System/Path.h" #include <fstream> #include <unistd.h> #include <sys/types.h> @@ -114,7 +115,9 @@ bool BugDriver::runPasses(const std::vector<const PassInfo*> &Passes, std::string &OutputFilename, bool DeleteOutput, bool Quiet) const{ std::cout << std::flush; - OutputFilename = getUniqueFilename("bugpoint-output.bc"); + sys::Path uniqueFilename("bugpoint-output.bc"); + uniqueFilename.makeUnique(); + OutputFilename = uniqueFilename.toString(); pid_t child_pid; switch (child_pid = fork()) { |