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 | c7f083297cd796c2fadb534307e4ef406fd68945 (patch) | |
tree | 9b2229594545a12585fe9e49e955595c4f5c5725 /lib/System/Path.cpp | |
parent | 8d4b9eddc00ad2c1c8f5bada32750c72f06c1517 (diff) | |
download | external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.zip external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.gz external_llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.bz2 |
For PR495:
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 34cbd6d..d2566fd0 100644 --- a/lib/System/Path.cpp +++ b/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; } |