1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Convert two uses of eraseFromDisk.

llvm-svn: 184136
This commit is contained in:
Rafael Espindola 2013-06-17 21:50:28 +00:00
parent 797eafc983
commit 6a07fa8287

View File

@ -121,7 +121,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
return InternalError; return InternalError;
if (Diff) { if (Diff) {
outs() << " nope.\n"; outs() << " nope.\n";
sys::Path(BitcodeResult).eraseFromDisk(); sys::fs::remove(BitcodeResult);
return KeepPrefix; return KeepPrefix;
} }
outs() << " yup.\n"; // No miscompilation! outs() << " yup.\n"; // No miscompilation!
@ -136,7 +136,7 @@ ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
<< BitcodeResult << "'!\n"; << BitcodeResult << "'!\n";
exit(1); 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. // Don't check if there are no passes in the suffix.
if (Suffix.empty()) if (Suffix.empty())