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 | 97182985d530dbef488696c95a39c14fe56c995b (patch) | |
tree | 00a87f3cf72f41a06622506764322dac63ebca9f /tools/bugpoint/OptimizerDriver.cpp | |
parent | cda985e1912d6f09a21bc84660dca4c3efdcb939 (diff) | |
download | llvm-97182985d530dbef488696c95a39c14fe56c995b.tar.gz llvm-97182985d530dbef488696c95a39c14fe56c995b.tar.bz2 llvm-97182985d530dbef488696c95a39c14fe56c995b.tar.xz |
For PR351:
* Convert use of getUniqueFilename to sys::Path::makeUnique();
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r-- | tools/bugpoint/OptimizerDriver.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index 097dd61df1..d141bd0dab 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/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()) { |