mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Unbreak the "-" as filename hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55ee03100c
commit
8b1daa3e71
@ -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