Add the "-s" flag to llvm-nm for Mach-O files that prints symbols only in
authorKevin Enderby <enderby@apple.com>
Fri, 11 Jul 2014 20:30:00 +0000 (20:30 +0000)
committerKevin Enderby <enderby@apple.com>
Fri, 11 Jul 2014 20:30:00 +0000 (20:30 +0000)
commit7f50100cfa2b1bc3ac33a6eebaccd4c3af9bd1dc
treea9cd46c944e0db037f1e07a2a3a793ffee986388
parent1736df6ae099e5d6a5e8b40c50d42012fd4b36b5
Add the "-s" flag to llvm-nm for Mach-O files that prints symbols only in
the specified section.  This is same functionality as darwin’s nm(1) "-s" flag.

There is one FIXME in the code and I’m all ears to anyone that can help me
with that.  This option takes exactly two strings and should be allowed
anywhere on the command line.  Such that "llvm-nm -s __TEXT __text foo.o"
would work. But that does not as the CommandLine Library does not have a
way to make this work as far as I can tell.  For now the "-s __TEXT __text"
has to be last on the command line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212842 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/nm-trivial-object.test
tools/llvm-nm/llvm-nm.cpp