summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Path.inc
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
commit00e89302069fe55e1dae58360bb9f7fd243d0b2b (patch)
tree755125bf5cbaddc34d016dcf09d1e942a336da8d /lib/System/Unix/Path.inc
parent2d01af2c31c3d82d83b0debe9b9f5b0237393b7d (diff)
downloadllvm-00e89302069fe55e1dae58360bb9f7fd243d0b2b.tar.gz
llvm-00e89302069fe55e1dae58360bb9f7fd243d0b2b.tar.bz2
llvm-00e89302069fe55e1dae58360bb9f7fd243d0b2b.tar.xz
Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Path.inc')
-rw-r--r--lib/System/Unix/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 4a18c6b3f0..a78b513c11 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -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");