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/Linker | |
| 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/Linker')
| -rw-r--r-- | lib/Linker/LinkItems.cpp | 2 | ||||
| -rw-r--r-- | lib/Linker/Linker.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Linker/LinkItems.cpp b/lib/Linker/LinkItems.cpp index 34677ce..a677334 100644 --- a/lib/Linker/LinkItems.cpp +++ b/lib/Linker/LinkItems.cpp @@ -118,7 +118,7 @@ bool Linker::LinkInLibraries(const std::vector<std::string> &Libraries) { /// bool Linker::LinkInFile(const sys::Path &File) { // Make sure we can at least read the file - if (!File.readable()) + if (!File.canRead()) return error("Cannot find linker input '" + File.toString() + "'"); // A user may specify an ar archive without -l, perhaps because it diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index e09c788..3371740 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -153,7 +153,7 @@ Linker::FindLib(const std::string &Filename) { // Determine if the pathname can be found as it stands. sys::Path FilePath(Filename); - if (FilePath.readable() && + if (FilePath.canRead() && (FilePath.isArchive() || FilePath.isDynamicLibrary())) return FilePath; |
