summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Path.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-15 23:02:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-15 23:02:10 +0000
commite56242780c2ecae7a9f47a1df065bb9237169db9 (patch)
tree54c120bb91ce01e7f5944ce45472497f9a9c4205 /llvm/lib/System/Unix/Path.cpp
parente13f84b186e04530e28d77bd0786b581755b6529 (diff)
downloadbcm5719-llvm-e56242780c2ecae7a9f47a1df065bb9237169db9.tar.gz
bcm5719-llvm-e56242780c2ecae7a9f47a1df065bb9237169db9.zip
Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object. llvm-svn: 18973
Diffstat (limited to 'llvm/lib/System/Unix/Path.cpp')
-rw-r--r--llvm/lib/System/Unix/Path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Path.cpp b/llvm/lib/System/Unix/Path.cpp
index 4a18c6b3f0a..a78b513c118 100644
--- a/llvm/lib/System/Unix/Path.cpp
+++ b/llvm/lib/System/Unix/Path.cpp
@@ -492,7 +492,7 @@ Path::createTemporaryFile(bool reuse_current) {
}
bool
-Path::destroyDirectory(bool remove_contents) {
+Path::destroyDirectory(bool remove_contents) const {
// Make sure we're dealing with a directory
if (!isDirectory()) return false;
@@ -520,7 +520,7 @@ Path::destroyDirectory(bool remove_contents) {
}
bool
-Path::destroyFile() {
+Path::destroyFile() const {
if (!isFile()) return false;
if (0 != unlink(path.c_str()))
ThrowErrno(path + ": Can't destroy file");
OpenPOWER on IntegriCloud