mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
Unbreak the "-" as filename hack.
llvm-svn: 10099
This commit is contained in:
parent
05cd86140a
commit
f67fef08c2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user