Unbreak the "-" as filename hack.

llvm-svn: 10099
This commit is contained in:
Brian Gaeke 2003-11-19 22:15:00 +00:00
parent 592db40359
commit d2553359a8
1 changed files with 3 additions and 2 deletions

View File

@ -114,12 +114,13 @@ void DumpSymbolNamesFromModule (Module *M) {
void DumpSymbolNamesFromFile (std::string &Filename) {
std::string ErrorMessage;
if (!FileOpenable (Filename)) {
if (Filename != "-" && !FileOpenable (Filename)) {
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
<< "\n";
return;
}
if (IsBytecode (Filename)) {
// Note: Currently we do not support reading an archive from stdin.
if (Filename == "-" || IsBytecode (Filename)) {
Module *Result = ParseBytecodeFile(Filename, &ErrorMessage);
if (Result) {
DumpSymbolNamesFromModule (Result);