mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
Remove some non-sensical logic that prevented llvm-nm from working on any
file other than one named "-". llvm-svn: 35478
This commit is contained in:
parent
e35e9d07b0
commit
686756b11e
@ -121,11 +121,6 @@ static void DumpSymbolNamesFromModule(Module *M) {
|
||||
static void DumpSymbolNamesFromFile(std::string &Filename) {
|
||||
std::string ErrorMessage;
|
||||
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.
|
||||
if (Filename == "-" || aPath.isBytecodeFile()) {
|
||||
Module *Result = ParseBytecodeFile(Filename,
|
||||
|
Loading…
Reference in New Issue
Block a user