summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-17 21:50:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-17 21:50:28 +0000
commit74aec35172e3278a57b474d0dec5d81302af932c (patch)
treeed8c10288bdf8406681503702c1963a343510ec9 /tools
parent71b9d94d6ba2933df0f7936c44cdb344336d46ef (diff)
downloadllvm-74aec35172e3278a57b474d0dec5d81302af932c.tar.gz
llvm-74aec35172e3278a57b474d0dec5d81302af932c.tar.bz2
llvm-74aec35172e3278a57b474d0dec5d81302af932c.tar.xz
Convert two uses of eraseFromDisk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184136 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/Miscompilation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index a17d07ab7b..88bbe228d5 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -121,7 +121,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
return InternalError;
if (Diff) {
outs() << " nope.\n";
- sys::Path(BitcodeResult).eraseFromDisk();
+ sys::fs::remove(BitcodeResult);
return KeepPrefix;
}
outs() << " yup.\n"; // No miscompilation!
@@ -136,7 +136,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
<< BitcodeResult << "'!\n";
exit(1);
}
- sys::Path(BitcodeResult).eraseFromDisk(); // No longer need the file on disk
+ sys::fs::remove(BitcodeResult);
// Don't check if there are no passes in the suffix.
if (Suffix.empty())