summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/OptimizerDriver.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-16 23:04:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-16 23:04:20 +0000
commit584cb0a8c117859197b29cb88e85455e4476a9e4 (patch)
tree029ee92c10cba7c0cb39b2b780b41d6f14984dff /llvm/tools/bugpoint/OptimizerDriver.cpp
parentbeb9946af80b8a940ae2051529bf3028d2e7523f (diff)
downloadbcm5719-llvm-584cb0a8c117859197b29cb88e85455e4476a9e4.tar.gz
bcm5719-llvm-584cb0a8c117859197b29cb88e85455e4476a9e4.zip
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 llvm-svn: 19001
Diffstat (limited to 'llvm/tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r--llvm/tools/bugpoint/OptimizerDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/OptimizerDriver.cpp b/llvm/tools/bugpoint/OptimizerDriver.cpp
index d141bd0dabe..709eff37e46 100644
--- a/llvm/tools/bugpoint/OptimizerDriver.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud