Remove some non-sensical logic that prevented llvm-nm from working on any

file other than one named "-".

llvm-svn: 35478
This commit is contained in:
Reid Spencer 2007-03-29 19:49:07 +00:00
parent c7f485fd71
commit d232f311cb
1 changed files with 0 additions and 5 deletions

View File

@ -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,