mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Remove a use of PathV1.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/Support/ToolOutputFile.h"
|
#include "llvm/Support/ToolOutputFile.h"
|
||||||
#include "llvm/Support/PathV1.h"
|
#include "llvm/Support/FileSystem.h"
|
||||||
#include "llvm/Support/Signals.h"
|
#include "llvm/Support/Signals.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -25,8 +25,10 @@ tool_output_file::CleanupInstaller::CleanupInstaller(const char *filename)
|
|||||||
|
|
||||||
tool_output_file::CleanupInstaller::~CleanupInstaller() {
|
tool_output_file::CleanupInstaller::~CleanupInstaller() {
|
||||||
// Delete the file if the client hasn't told us not to.
|
// Delete the file if the client hasn't told us not to.
|
||||||
if (!Keep && Filename != "-")
|
if (!Keep && Filename != "-") {
|
||||||
sys::Path(Filename).eraseFromDisk();
|
bool Existed;
|
||||||
|
sys::fs::remove(Filename, Existed);
|
||||||
|
}
|
||||||
|
|
||||||
// Ok, the file is successfully written and closed, or deleted. There's no
|
// Ok, the file is successfully written and closed, or deleted. There's no
|
||||||
// further need to clean it up on signals.
|
// further need to clean it up on signals.
|
||||||
|
Reference in New Issue
Block a user