diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-16 23:04:20 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-16 23:04:20 +0000 |
commit | 5f76760c880e6d61c229d2058c5699b033caeae1 (patch) | |
tree | 0afc79386ae09a712ea3dbd7fc4208d20d422eb9 /tools/bugpoint/OptimizerDriver.cpp | |
parent | 9ac141823d6180f8a49299c55ed8fc8b9a8310a3 (diff) | |
download | llvm-5f76760c880e6d61c229d2058c5699b033caeae1.tar.gz llvm-5f76760c880e6d61c229d2058c5699b033caeae1.tar.bz2 llvm-5f76760c880e6d61c229d2058c5699b033caeae1.tar.xz |
For PR351:
* removeFile() -> sys::Path::destroyFile()
* remove extraneous toString() calls
* convert local variables representing path names from std::string to
sys::Path
* Use sys::Path objects with FileRemove instead of std::string
* Use sys::Path methods for construction of path names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r-- | tools/bugpoint/OptimizerDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index d141bd0dab..709eff37e4 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/tools/bugpoint/OptimizerDriver.cpp @@ -143,7 +143,7 @@ bool BugDriver::runPasses(const std::vector<const PassInfo*> &Passes, // If we are supposed to delete the bytecode file or if the passes crashed, // remove it now. This may fail if the file was never created, but that's ok. if (DeleteOutput || !ExitedOK) - removeFile(OutputFilename); + sys::Path(OutputFilename).destroyFile(); if (!Quiet) { if (ExitedOK) @@ -194,6 +194,6 @@ Module *BugDriver::runPassesOn(Module *M, << BytecodeResult << "'!\n"; exit(1); } - removeFile(BytecodeResult); // No longer need the file on disk + sys::Path(BytecodeResult).destroyFile(); // No longer need the file on disk return Ret; } |