[PATCH] D62070: Update llvm-nm -s to use a multi-var option
Michael Trent via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 20:14:52 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361091: Update llvm-nm -s to use a multi-var option (authored by mtrent, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62070?vs=200065&id=200132#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62070/new/
https://reviews.llvm.org/D62070
Files:
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Index: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
===================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp
@@ -183,12 +183,7 @@
cl::opt<bool> SpecialSyms("special-syms",
cl::desc("No-op. Used for GNU compatibility only"));
-// FIXME: 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. For now the "-s __TEXT __text" has to be last on the command
-// line.
-cl::list<std::string> SegSect("s", cl::Positional, cl::ZeroOrMore,
+cl::list<std::string> SegSect("s", cl::multi_val(2), cl::ZeroOrMore,
cl::value_desc("segment section"), cl::Hidden,
cl::desc("Dump only symbols from this segment "
"and section name, Mach-O only"),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62070.200132.patch
Type: text/x-patch
Size: 1034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190518/4b626b30/attachment.bin>
More information about the llvm-commits
mailing list