[llvm-commits] CVS: llvm/lib/System/Unix/Path.cpp

Reid Spencer reid at x10sys.com
Wed Dec 15 15:02:22 PST 2004



Changes in directory llvm/lib/System/Unix:

Path.cpp updated: 1.24 -> 1.25
---
Log message:

Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/System/Unix/Path.cpp
diff -u llvm/lib/System/Unix/Path.cpp:1.24 llvm/lib/System/Unix/Path.cpp:1.25
--- llvm/lib/System/Unix/Path.cpp:1.24	Wed Dec 15 16:21:42 2004
+++ llvm/lib/System/Unix/Path.cpp	Wed Dec 15 17:02:10 2004
@@ -492,7 +492,7 @@
 }
 
 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 @@
 }
 
 bool
-Path::destroyFile() {
+Path::destroyFile() const {
   if (!isFile()) return false;
   if (0 != unlink(path.c_str()))
     ThrowErrno(path + ": Can't destroy file");






More information about the llvm-commits mailing list