mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Use the simpler version of sys::fs::remove when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198958 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -28,8 +28,7 @@ FileOutputBuffer::FileOutputBuffer(mapped_file_region * R,
|
||||
}
|
||||
|
||||
FileOutputBuffer::~FileOutputBuffer() {
|
||||
bool Existed;
|
||||
sys::fs::remove(Twine(TempPath), Existed);
|
||||
sys::fs::remove(Twine(TempPath));
|
||||
}
|
||||
|
||||
error_code FileOutputBuffer::create(StringRef FilePath,
|
||||
@@ -57,8 +56,7 @@ error_code FileOutputBuffer::create(StringRef FilePath,
|
||||
}
|
||||
|
||||
// Delete target file.
|
||||
bool Existed;
|
||||
EC = sys::fs::remove(FilePath, Existed);
|
||||
EC = sys::fs::remove(FilePath);
|
||||
if (EC)
|
||||
return EC;
|
||||
|
||||
|
Reference in New Issue
Block a user