From d86dd4a29d8cdfcbae03dedaa5ee24c6c02f4839 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 14 Jun 2013 13:59:21 +0000 Subject: [PATCH] Remove a use of sys::Path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183979 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Signals.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index 6e8f94c6bf8..941aa288899 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 @@ -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(); }