mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-19 08:35:45 +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:
@@ -25,10 +25,8 @@ tool_output_file::CleanupInstaller::CleanupInstaller(const char *filename)
|
||||
|
||||
tool_output_file::CleanupInstaller::~CleanupInstaller() {
|
||||
// Delete the file if the client hasn't told us not to.
|
||||
if (!Keep && Filename != "-") {
|
||||
bool Existed;
|
||||
sys::fs::remove(Filename, Existed);
|
||||
}
|
||||
if (!Keep && Filename != "-")
|
||||
sys::fs::remove(Filename);
|
||||
|
||||
// Ok, the file is successfully written and closed, or deleted. There's no
|
||||
// further need to clean it up on signals.
|
||||
|
||||
Reference in New Issue
Block a user