[PATCH] D126133: [llvm-nm][docs] Document -W and -U
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 21 16:01:25 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: jhenderson, keith.
Herald added subscribers: StephenFan, rupprecht.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Latest GNU nm (milestone: 2.39) has added -W/--no-weak and changed -U to mean
--defined-only (instead of --unicode=). The changes match our semantics.
Close #55297
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126133
Files:
llvm/docs/CommandGuide/llvm-nm.rst
llvm/tools/llvm-nm/Opts.td
Index: llvm/tools/llvm-nm/Opts.td
===================================================================
--- llvm/tools/llvm-nm/Opts.td
+++ llvm/tools/llvm-nm/Opts.td
@@ -77,7 +77,7 @@
def : F<"S", "Alias for --print-size">, Alias<print_size>;
def : JoinedOrSeparate<["-"], "t">, HelpText<"Alias for --radix">, Alias<radix_EQ>, MetaVarName<"<radix>">;
def : F<"u", "Alias for --undefined-only">, Alias<undefined_only>;
-def : F<"U", "Deprecated alias for --defined-only">, Alias<defined_only>, Flags<[HelpHidden]>;
+def : F<"U", "Alias for --defined-only">, Alias<defined_only>;
def : F<"v", "Alias for --numeric-sort">, Alias<numeric_sort>;
def : F<"V", "Alias for --version">, Alias<version>;
-def : F<"W", "Deprecated alias for --no-weak">, Alias<no_weak>, Flags<[HelpHidden]>;
+def : F<"W", "Alias for --no-weak">, Alias<no_weak>;
Index: llvm/docs/CommandGuide/llvm-nm.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-nm.rst
+++ llvm/docs/CommandGuide/llvm-nm.rst
@@ -145,7 +145,7 @@
Show all symbols, even those usually suppressed.
-.. option:: --defined-only
+.. option:: --defined-only, -U
Print only symbols defined in this file.
@@ -197,7 +197,7 @@
Show symbols in the order encountered.
-.. option:: --no-weak
+.. option:: --no-weak, -W
Don't print weak symbols.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126133.431184.patch
Type: text/x-patch
Size: 1354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220521/5b0dafc4/attachment-0001.bin>
More information about the llvm-commits
mailing list