summaryrefslogtreecommitdiffstats
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-01 18:22:21 +0000
committerChris Lattner <sabre@nondot.org>2006-08-01 18:22:21 +0000
commit2f2d32437a2bb55bb1dda4805a6ba743183f02a2 (patch)
treefe062881c6a2d59085e620a394f8f97e7d7cce9c /tools/llvm-nm
parent0d167276dddff2775d120c1a44842e0a3ecd283c (diff)
downloadexternal_llvm-2f2d32437a2bb55bb1dda4805a6ba743183f02a2.zip
external_llvm-2f2d32437a2bb55bb1dda4805a6ba743183f02a2.tar.gz
external_llvm-2f2d32437a2bb55bb1dda4805a6ba743183f02a2.tar.bz2
no need to check readability here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29449 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 420c9ea..3e43953 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.canRead()) {
+ if (Filename != "-") {
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
<< "\n";
return;