summaryrefslogtreecommitdiffstats
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
commitd232f311cb0a8aaee096b5b5872ae3c09649e2a5 (patch)
treee33bffc9d8d1c611590b4466d6e46aa279cc1f4b
parentc7f485fd717e02d9d7a59b149acf2abb6ce00770 (diff)
downloadbcm5719-llvm-d232f311cb0a8aaee096b5b5872ae3c09649e2a5.tar.gz
bcm5719-llvm-d232f311cb0a8aaee096b5b5872ae3c09649e2a5.zip
Remove some non-sensical logic that prevented llvm-nm from working on any
file other than one named "-". llvm-svn: 35478
-rw-r--r--llvm/tools/llvm-nm/llvm-nm.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp
index bad001e4087..d195f700831 100644
--- a/llvm/tools/llvm-nm/llvm-nm.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud