diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-29 19:49:07 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-29 19:49:07 +0000 |
commit | a145c6d76667f8a702f7da1a9836aba4729c9f85 (patch) | |
tree | 389cae16f56bb24fb54bfa0796b732a9cc61e8dc /tools/llvm-nm | |
parent | 1ea733db9d7eb1e55785e9b2201638c37db56cad (diff) | |
download | external_llvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.zip external_llvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.tar.gz external_llvm-a145c6d76667f8a702f7da1a9836aba4729c9f85.tar.bz2 |
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.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index bad001e..d195f70 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, |