summaryrefslogtreecommitdiff
path: root/tools/llvm-nm
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-29 19:49:07 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-29 19:49:07 +0000
commita145c6d76667f8a702f7da1a9836aba4729c9f85 (patch)
tree389cae16f56bb24fb54bfa0796b732a9cc61e8dc /tools/llvm-nm
parent1ea733db9d7eb1e55785e9b2201638c37db56cad (diff)
downloadllvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.tar.gz
llvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.tar.bz2
llvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.tar.xz
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
Diffstat (limited to 'tools/llvm-nm')
-rw-r--r--tools/llvm-nm/llvm-nm.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp
index bad001e408..d195f70083 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,