summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ToolOutputFile.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-14 16:20:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-14 16:20:18 +0000
commitca635dc92c83509cfc751f3af678f9a6ecdef434 (patch)
tree649fc28f637d44d562814b3f9b6dbf33441cbc51 /llvm/lib/Support/ToolOutputFile.cpp
parent1804b5795a36f6eea1a254109cb834efe6f6ed40 (diff)
downloadbcm5719-llvm-ca635dc92c83509cfc751f3af678f9a6ecdef434.tar.gz
bcm5719-llvm-ca635dc92c83509cfc751f3af678f9a6ecdef434.zip
Remove a use of PathV1.h.
llvm-svn: 183985
Diffstat (limited to 'llvm/lib/Support/ToolOutputFile.cpp')
-rw-r--r--llvm/lib/Support/ToolOutputFile.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Support/ToolOutputFile.cpp b/llvm/lib/Support/ToolOutputFile.cpp
index f58d070a5e5..09fb6ee6054 100644
--- a/llvm/lib/Support/ToolOutputFile.cpp
+++ b/llvm/lib/Support/ToolOutputFile.cpp
@@ -12,7 +12,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/ToolOutputFile.h"
-#include "llvm/Support/PathV1.h"
+#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Signals.h"
using namespace llvm;
@@ -25,8 +25,10 @@ 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 != "-")
- sys::Path(Filename).eraseFromDisk();
+ if (!Keep && Filename != "-") {
+ bool Existed;
+ sys::fs::remove(Filename, Existed);
+ }
// Ok, the file is successfully written and closed, or deleted. There's no
// further need to clean it up on signals.
OpenPOWER on IntegriCloud