mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Convert two uses of eraseFromDisk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184136 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
71b9d94d6b
commit
74aec35172
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user