summaryrefslogtreecommitdiff
path: root/tools/bugpoint
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-18 15:33:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-18 15:33:18 +0000
commit366f510a41aea70be5b136a2559ce064440cebf3 (patch)
tree1f6bbfffe595736d4b01edc5470894b23d1c555c /tools/bugpoint
parent88088f4067ae002aebf6e32079c446b06fab31f1 (diff)
downloadllvm-366f510a41aea70be5b136a2559ce064440cebf3.tar.gz
llvm-366f510a41aea70be5b136a2559ce064440cebf3.tar.bz2
llvm-366f510a41aea70be5b136a2559ce064440cebf3.tar.xz
Convert some uses of eraseFromDisk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r--tools/bugpoint/OptimizerDriver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp
index 6cc8f1189e..125dabc6a0 100644
--- a/tools/bugpoint/OptimizerDriver.cpp
+++ b/tools/bugpoint/OptimizerDriver.cpp
@@ -219,10 +219,10 @@ bool BugDriver::runPasses(Module *Program,
// If we are supposed to delete the bitcode file or if the passes crashed,
// remove it now. This may fail if the file was never created, but that's ok.
if (DeleteOutput || result != 0)
- sys::Path(OutputFilename).eraseFromDisk();
+ sys::fs::remove(OutputFilename);
// Remove the temporary input file as well
- inputFilename.eraseFromDisk();
+ sys::fs::remove(inputFilename.c_str());
if (!Quiet) {
if (result == 0)
@@ -270,6 +270,6 @@ Module *BugDriver::runPassesOn(Module *M,
<< BitcodeResult << "'!\n";
exit(1);
}
- sys::Path(BitcodeResult).eraseFromDisk(); // No longer need the file on disk
+ sys::fs::remove(BitcodeResult);
return Ret;
}