Change the signatures of the destroyFile and destroyDirectory methods to
[oota-llvm.git] / lib / System / Win32 / Path.cpp
index d76dcd00176642f9c5780aaefe603fe6abf60e8d..3e179eaf48a3a7c06f77e2fb1762a70fa340aa02 100644 (file)
@@ -503,7 +503,7 @@ Path::createFile() {
 }
 
 bool
-Path::destroyDirectory(bool remove_contents) {
+Path::destroyDirectory(bool remove_contents) const {
   // Make sure we're dealing with a directory
   if (!isDirectory()) return false;
 
@@ -532,7 +532,7 @@ Path::destroyDirectory(bool remove_contents) {
 }
 
 bool
-Path::destroyFile() {
+Path::destroyFile() const {
   if (!isFile()) return false;
 
   DWORD attr = GetFileAttributes(path.c_str());