Change the signatures of the destroyFile and destroyDirectory methods to
[oota-llvm.git] / lib / System / Unix / Path.inc
index 4a18c6b3f0aa32068ae7cbcf3fee58bf712d6210..a78b513c1184568bb59fbf8014531788997ee551 100644 (file)
@@ -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");