From 794a58ed197f082c96a1ea33fdb9c6d0a8f151d8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Aug 2003 20:29:18 +0000 Subject: [PATCH] Use the C++, more portable, deleter git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7483 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/SystemUtils.cpp | 2 +- support/lib/Support/SystemUtils.cpp | 2 +- tools/bugpoint/SystemUtils.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Support/SystemUtils.cpp b/lib/Support/SystemUtils.cpp index aca9e5a4026..ec0bcb3296e 100644 --- a/lib/Support/SystemUtils.cpp +++ b/lib/Support/SystemUtils.cpp @@ -20,7 +20,7 @@ /// removeFile - Delete the specified file /// void removeFile(const std::string &Filename) { - unlink(Filename.c_str()); + std::remove(Filename.c_str()); } /// getUniqueFilename - Return a filename with the specified prefix. If the diff --git a/support/lib/Support/SystemUtils.cpp b/support/lib/Support/SystemUtils.cpp index aca9e5a4026..ec0bcb3296e 100644 --- a/support/lib/Support/SystemUtils.cpp +++ b/support/lib/Support/SystemUtils.cpp @@ -20,7 +20,7 @@ /// removeFile - Delete the specified file /// void removeFile(const std::string &Filename) { - unlink(Filename.c_str()); + std::remove(Filename.c_str()); } /// getUniqueFilename - Return a filename with the specified prefix. If the diff --git a/tools/bugpoint/SystemUtils.cpp b/tools/bugpoint/SystemUtils.cpp index aca9e5a4026..ec0bcb3296e 100644 --- a/tools/bugpoint/SystemUtils.cpp +++ b/tools/bugpoint/SystemUtils.cpp @@ -20,7 +20,7 @@ /// removeFile - Delete the specified file /// void removeFile(const std::string &Filename) { - unlink(Filename.c_str()); + std::remove(Filename.c_str()); } /// getUniqueFilename - Return a filename with the specified prefix. If the