forked from OSchip/llvm-project
parent
592db40359
commit
d2553359a8
|
@ -114,12 +114,13 @@ void DumpSymbolNamesFromModule (Module *M) {
|
||||||
|
|
||||||
void DumpSymbolNamesFromFile (std::string &Filename) {
|
void DumpSymbolNamesFromFile (std::string &Filename) {
|
||||||
std::string ErrorMessage;
|
std::string ErrorMessage;
|
||||||
if (!FileOpenable (Filename)) {
|
if (Filename != "-" && !FileOpenable (Filename)) {
|
||||||
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
|
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
|
||||||
<< "\n";
|
<< "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (IsBytecode (Filename)) {
|
// Note: Currently we do not support reading an archive from stdin.
|
||||||
|
if (Filename == "-" || IsBytecode (Filename)) {
|
||||||
Module *Result = ParseBytecodeFile(Filename, &ErrorMessage);
|
Module *Result = ParseBytecodeFile(Filename, &ErrorMessage);
|
||||||
if (Result) {
|
if (Result) {
|
||||||
DumpSymbolNamesFromModule (Result);
|
DumpSymbolNamesFromModule (Result);
|
||||||
|
|
Loading…
Reference in New Issue