From 238ec53e707e3ad3132252655cbd65b634e03e87 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Aug 2003 20:29:18 +0000 Subject: Use the C++, more portable, deleter llvm-svn: 7483 --- llvm/lib/Support/SystemUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support/SystemUtils.cpp') diff --git a/llvm/lib/Support/SystemUtils.cpp b/llvm/lib/Support/SystemUtils.cpp index aca9e5a4026..ec0bcb3296e 100644 --- a/llvm/lib/Support/SystemUtils.cpp +++ b/llvm/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 -- cgit v1.2.3