From 5b891e98471ec8a21e3cd2182a322c77aad200bb Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 7 Jul 2005 18:21:42 +0000 Subject: For PR495: Change interface to Path class: readable -> canRead writable -> canWrite executable -> canExecute More (incremental) changes coming to close 495. llvm-svn: 22345 --- llvm/lib/Linker/LinkItems.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Linker/LinkItems.cpp') diff --git a/llvm/lib/Linker/LinkItems.cpp b/llvm/lib/Linker/LinkItems.cpp index 34677ce3654..a67733437ee 100644 --- a/llvm/lib/Linker/LinkItems.cpp +++ b/llvm/lib/Linker/LinkItems.cpp @@ -118,7 +118,7 @@ bool Linker::LinkInLibraries(const std::vector &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 -- cgit v1.2.3