llvm.org GIT mirror llvm / f30757f
[llvm-nm] Don't error out on multiple occurrances of the -g/--external-only flag GNU binutils nm doesn't error out on this, and some projects' build systems can end up doing that in some cases. Allowing that seems like a better target than trying to avoid user projects passing multiple -g parameters to $NM. Differential Revision: https://reviews.llvm.org/D39539 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317301 91177308-0d34-0410-b5e6-96231b3b80d8 Martin Storsjo 1 year, 11 months ago
2 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 # RUN: llvm-nm -g %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
1 # RUN: llvm-nm -g -g %p/Inputs/hello.obj.macho-x86_64 | FileCheck %s
12
23 # CHECK-NOT: EH_frame0
34 # CHECK: _main
8484 cl::aliasopt(DefinedOnly), cl::Grouping);
8585
8686 cl::opt ExternalOnly("extern-only",
87 cl::desc("Show only external symbols"));
87 cl::desc("Show only external symbols"),
88 cl::ZeroOrMore);
8889 cl::alias ExternalOnly2("g", cl::desc("Alias for --extern-only"),
89 cl::aliasopt(ExternalOnly), cl::Grouping);
90 cl::aliasopt(ExternalOnly), cl::Grouping,
91 cl::ZeroOrMore);
9092
9193 cl::opt BSDFormat("B", cl::desc("Alias for --format=bsd"),
9294 cl::Grouping);