summaryrefslogtreecommitdiff
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-07-07 18:21:42 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-07-07 18:21:42 +0000
commitc7f083297cd796c2fadb534307e4ef406fd68945 (patch)
tree9b2229594545a12585fe9e49e955595c4f5c5725 /tools/llvm-nm
parent8d4b9eddc00ad2c1c8f5bada32750c72f06c1517 (diff)
downloadllvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.gz
llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.bz2
llvm-c7f083297cd796c2fadb534307e4ef406fd68945.tar.xz
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 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index f6b75928d5..604e30a3d5 100644
--- a/tools/llvm-nm/llvm-nm.cpp
+++ b/tools/llvm-nm/llvm-nm.cpp
@@ -119,7 +119,7 @@ void DumpSymbolNamesFromModule (Module *M) {
void DumpSymbolNamesFromFile (std::string &Filename) {
std::string ErrorMessage;
sys::Path aPath(Filename);
- if (Filename != "-" && !aPath.readable()) {
+ if (Filename != "-" && !aPath.canRead()) {
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
<< "\n";
return;