[llvm-commits] CVS: llvm/lib/Linker/LinkItems.cpp Linker.cpp
Reid Spencer
reid at x10sys.com
Thu Jul 7 11:21:57 PDT 2005
Changes in directory llvm/lib/Linker:
LinkItems.cpp updated: 1.6 -> 1.7
Linker.cpp updated: 1.5 -> 1.6
---
Log message:
For PR495: http://llvm.cs.uiuc.edu/PR495 :
Change interface to Path class:
readable -> canRead
writable -> canWrite
executable -> canExecute
More (incremental) changes coming to close 495.
---
Diffs of the changes: (+2 -2)
LinkItems.cpp | 2 +-
Linker.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Linker/LinkItems.cpp
diff -u llvm/lib/Linker/LinkItems.cpp:1.6 llvm/lib/Linker/LinkItems.cpp:1.7
--- llvm/lib/Linker/LinkItems.cpp:1.6 Thu Apr 21 17:47:36 2005
+++ llvm/lib/Linker/LinkItems.cpp Thu Jul 7 13:21:42 2005
@@ -118,7 +118,7 @@
///
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
Index: llvm/lib/Linker/Linker.cpp
diff -u llvm/lib/Linker/Linker.cpp:1.5 llvm/lib/Linker/Linker.cpp:1.6
--- llvm/lib/Linker/Linker.cpp:1.5 Thu Apr 21 17:47:36 2005
+++ llvm/lib/Linker/Linker.cpp Thu Jul 7 13:21:42 2005
@@ -153,7 +153,7 @@
{
// 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;
More information about the llvm-commits
mailing list