mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user