mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-06 09:44:39 +00:00
Make llvm-nm work in "pipe mode"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72ac148d49
commit
fc046d52e4
@ -28,7 +28,7 @@ namespace {
|
||||
|
||||
cl::list<std::string>
|
||||
InputFilenames(cl::Positional, cl::desc("<input bytecode files>"),
|
||||
cl::OneOrMore);
|
||||
cl::ZeroOrMore);
|
||||
|
||||
cl::opt<bool> UndefinedOnly("undefined-only",
|
||||
cl::desc("Show only undefined symbols"));
|
||||
@ -116,8 +116,12 @@ int main(int argc, char **argv) {
|
||||
ToolName = argv[0];
|
||||
if (BSDFormat) OutputFormat = bsd;
|
||||
if (POSIXFormat) OutputFormat = posix;
|
||||
if (InputFilenames.size () != 1)
|
||||
MultipleFiles = true;
|
||||
|
||||
switch (InputFilenames.size()) {
|
||||
case 0: InputFilenames.push_back("-");
|
||||
case 1: break;
|
||||
default: MultipleFiles = true;
|
||||
}
|
||||
|
||||
std::for_each (InputFilenames.begin (), InputFilenames.end (),
|
||||
DumpSymbolNamesFromFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user