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

Reid Spencer reid at x10sys.com
Thu Jul 7 11:21:56 PDT 2005



Changes in directory llvm/lib/System:

Path.cpp updated: 1.17 -> 1.18
---
Log message:

For PR495: http://llvm.cs.uiuc.edu/PR495 :
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute

More (incremental) changes coming to close 495.



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

 Path.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/System/Path.cpp
diff -u llvm/lib/System/Path.cpp:1.17 llvm/lib/System/Path.cpp:1.18
--- llvm/lib/System/Path.cpp:1.17	Thu May  5 17:33:05 2005
+++ llvm/lib/System/Path.cpp	Thu Jul  7 13:21:42 2005
@@ -62,14 +62,14 @@
 
 bool
 Path::isArchive() const {
-  if (readable())
+  if (canRead())
     return hasMagicNumber("!<arch>\012");
   return false;
 }
 
 bool
 Path::isDynamicLibrary() const {
-  if (readable())
+  if (canRead())
     return hasMagicNumber("\177ELF");
   return false;
 }






More information about the llvm-commits mailing list