Don't silently ignore invalid files: tell the user!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2004-11-08 22:03:10 +00:00
parent ac6d4854e1
commit eda20f933b
2 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule,
<< Pathname << "': " << ErrorMessage << "\n";
return true;
}
} else {
std::cerr << "Warning: invalid file `" << Pathname << "' ignored.\n";
}
}

View File

@ -345,6 +345,8 @@ bool llvm::LinkFiles(const char *progname, Module *HeadModule,
<< Pathname << "': " << ErrorMessage << "\n";
return true;
}
} else {
std::cerr << "Warning: invalid file `" << Pathname << "' ignored.\n";
}
}