Use the C++, more portable, deleter
[oota-llvm.git] / lib / Support / 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