summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-01 20:29:18 +0000
committerChris Lattner <sabre@nondot.org>2003-08-01 20:29:18 +0000
commit238ec53e707e3ad3132252655cbd65b634e03e87 (patch)
tree9f30dd4b7e540881ab525ddd6394cf87555f3307
parentd32fe2e59270652e55d116c18e89eccedaab93b9 (diff)
downloadbcm5719-llvm-238ec53e707e3ad3132252655cbd65b634e03e87.tar.gz
bcm5719-llvm-238ec53e707e3ad3132252655cbd65b634e03e87.zip
Use the C++, more portable, deleter
llvm-svn: 7483
-rw-r--r--llvm/lib/Support/SystemUtils.cpp2
-rw-r--r--llvm/support/lib/Support/SystemUtils.cpp2
-rw-r--r--llvm/tools/bugpoint/SystemUtils.cpp2
3 files changed, 3 insertions, 3 deletions
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
diff --git a/llvm/support/lib/Support/SystemUtils.cpp b/llvm/support/lib/Support/SystemUtils.cpp
index aca9e5a4026..ec0bcb3296e 100644
--- a/llvm/support/lib/Support/SystemUtils.cpp
+++ b/llvm/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/llvm/tools/bugpoint/SystemUtils.cpp b/llvm/tools/bugpoint/SystemUtils.cpp
index aca9e5a4026..ec0bcb3296e 100644
--- a/llvm/tools/bugpoint/SystemUtils.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud