From a145c6d76667f8a702f7da1a9836aba4729c9f85 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 29 Mar 2007 19:49:07 +0000 Subject: [PATCH] Remove some non-sensical logic that prevented llvm-nm from working on any file other than one named "-". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35478 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-nm/llvm-nm.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index bad001e4087..d195f700831 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -121,11 +121,6 @@ static void DumpSymbolNamesFromModule(Module *M) { static void DumpSymbolNamesFromFile(std::string &Filename) { std::string ErrorMessage; sys::Path aPath(Filename); - if (Filename != "-") { - std::cerr << ToolName << ": " << Filename << ": " << strerror (errno) - << "\n"; - return; - } // Note: Currently we do not support reading an archive from stdin. if (Filename == "-" || aPath.isBytecodeFile()) { Module *Result = ParseBytecodeFile(Filename, -- 2.11.0