X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSystem%2FUnix%2FPath.inc;h=a78b513c1184568bb59fbf8014531788997ee551;hb=00e89302069fe55e1dae58360bb9f7fd243d0b2b;hp=4a18c6b3f0aa32068ae7cbcf3fee58bf712d6210;hpb=2d01af2c31c3d82d83b0debe9b9f5b0237393b7d;p=oota-llvm.git diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc index 4a18c6b3f0a..a78b513c118 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");