summaryrefslogtreecommitdiff
path: root/lib/Support/Windows/Signals.inc
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-14 13:59:21 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-14 13:59:21 +0000
commitd86dd4a29d8cdfcbae03dedaa5ee24c6c02f4839 (patch)
tree1441031819cc4895ff8d0de11f1776b272970713 /lib/Support/Windows/Signals.inc
parenta768a4954818456fa6fe2077a3cbe75979025c15 (diff)
downloadllvm-d86dd4a29d8cdfcbae03dedaa5ee24c6c02f4839.tar.gz
llvm-d86dd4a29d8cdfcbae03dedaa5ee24c6c02f4839.tar.bz2
llvm-d86dd4a29d8cdfcbae03dedaa5ee24c6c02f4839.tar.xz
Remove a use of sys::Path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Signals.inc')
-rw-r--r--lib/Support/Windows/Signals.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc
index 6e8f94c6bf..941aa28889 100644
--- a/lib/Support/Windows/Signals.inc
+++ b/lib/Support/Windows/Signals.inc
@@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Support/PathV1.h"
+#include "llvm/Support/FileSystem.h"
#include "Windows.h"
#include <algorithm>
@@ -354,7 +354,8 @@ static void Cleanup() {
if (FilesToRemove != NULL)
while (!FilesToRemove->empty()) {
- llvm::sys::Path(FilesToRemove->back()).eraseFromDisk();
+ bool Existed;
+ llvm::sys::fs::remove(FilesToRemove->back(), Existed);
FilesToRemove->pop_back();
}