diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-07-07 18:21:42 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-07-07 18:21:42 +0000 |
commit | 5b891e98471ec8a21e3cd2182a322c77aad200bb (patch) | |
tree | 41dd8e6fcd6d4347ca4ed7e22e8f52386e0a0d39 /llvm/lib/System/Path.cpp | |
parent | 2e81f65eb8c066ceb7f7eaa88abc37069ef4bc56 (diff) | |
download | bcm5719-llvm-5b891e98471ec8a21e3cd2182a322c77aad200bb.tar.gz bcm5719-llvm-5b891e98471ec8a21e3cd2182a322c77aad200bb.zip |
For PR495:
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
llvm-svn: 22345
Diffstat (limited to 'llvm/lib/System/Path.cpp')
-rw-r--r-- | llvm/lib/System/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp index 34cbd6d69b7..d2566fd06a4 100644 --- a/llvm/lib/System/Path.cpp +++ b/llvm/lib/System/Path.cpp @@ -62,14 +62,14 @@ sys::IdentifyFileType(const char*magic, unsigned length) { 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; } |