From 9aa3d5d7b23fa3dd076932b5b48048a5e8d40da5 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. llvm-svn: 183979 --- llvm/lib/Support/Windows/Signals.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Support/Windows/Signals.inc b/llvm/lib/Support/Windows/Signals.inc index 6e8f94c6bf8f..941aa2888998 100644 --- a/llvm/lib/Support/Windows/Signals.inc +++ b/llvm/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(); }