From 07db3f7e3f268c01e66e87608968c5cb71e35f82 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 21 Mar 2017 05:47:57 +0000 Subject: Resubmit r298334 after fixing OSX build errors. Hopefully this works, I can't test since I don't have Mac hardware, however. llvm-svn: 298340 --- lldb/source/Host/common/Host.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lldb/source/Host/common/Host.cpp') diff --git a/lldb/source/Host/common/Host.cpp b/lldb/source/Host/common/Host.cpp index 5d254ec0561..649b2c96c2f 100644 --- a/lldb/source/Host/common/Host.cpp +++ b/lldb/source/Host/common/Host.cpp @@ -51,7 +51,6 @@ #include "lldb/Core/ArchSpec.h" #include "lldb/Host/FileSpec.h" -#include "lldb/Host/FileSystem.h" #include "lldb/Host/Host.h" #include "lldb/Host/HostInfo.h" #include "lldb/Host/HostProcess.h" @@ -598,8 +597,7 @@ Error Host::RunShellCommand(const Args &args, const FileSpec &working_dir, } } - if (FileSystem::GetFileExists(output_file_spec)) - FileSystem::Unlink(output_file_spec); + llvm::sys::fs::remove(output_file_spec.GetPath()); return error; } -- cgit v1.2.3