mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove some non-sensical logic that prevented llvm-nm from working on any
file other than one named "-". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35478 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ea733db9d
commit
a145c6d766
@ -121,11 +121,6 @@ static void DumpSymbolNamesFromModule(Module *M) {
|
|||||||
static void DumpSymbolNamesFromFile(std::string &Filename) {
|
static void DumpSymbolNamesFromFile(std::string &Filename) {
|
||||||
std::string ErrorMessage;
|
std::string ErrorMessage;
|
||||||
sys::Path aPath(Filename);
|
sys::Path aPath(Filename);
|
||||||
if (Filename != "-") {
|
|
||||||
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
|
|
||||||
<< "\n";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// Note: Currently we do not support reading an archive from stdin.
|
// Note: Currently we do not support reading an archive from stdin.
|
||||||
if (Filename == "-" || aPath.isBytecodeFile()) {
|
if (Filename == "-" || aPath.isBytecodeFile()) {
|
||||||
Module *Result = ParseBytecodeFile(Filename,
|
Module *Result = ParseBytecodeFile(Filename,
|
||||||
|
Loading…
Reference in New Issue
Block a user