Use the C++, more portable, deleter
authorChris Lattner <sabre@nondot.org>
Fri, 1 Aug 2003 20:29:18 +0000 (20:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Aug 2003 20:29:18 +0000 (20:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7483 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/SystemUtils.cpp
support/lib/Support/SystemUtils.cpp
tools/bugpoint/SystemUtils.cpp

index aca9e5a4026a826e5007811f0b369f72e2e971f5..ec0bcb3296e0c5937de442226577b9f3c719fd57 100644 (file)
@@ -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
index aca9e5a4026a826e5007811f0b369f72e2e971f5..ec0bcb3296e0c5937de442226577b9f3c719fd57 100644 (file)
@@ -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
index aca9e5a4026a826e5007811f0b369f72e2e971f5..ec0bcb3296e0c5937de442226577b9f3c719fd57 100644 (file)
@@ -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