Skip to content

Commit

Permalink
[llvm-nm] Fix docs and help text for --print-size
Browse files Browse the repository at this point in the history
The --print-size help text and documentation claimed that the size was
printed instead of the address, but this is incorrect. It is printed as
well as the address. This patch fixes this issue.

Reviewed by: MaskRay, mtrent, ruiu

Differential Revision: https://reviews.llvm.org/D63142

llvm-svn: 363136
  • Loading branch information
jh7370 committed Jun 12, 2019
1 parent f243ca4 commit 2c16bb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/docs/CommandGuide/llvm-nm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ OPTIONS

.. option:: --print-size, -S

Show symbol size instead of address.
Show symbol size as well as address (not applicable for Mach-O).

.. option:: --size-sort

Expand Down
2 changes: 1 addition & 1 deletion llvm/tools/llvm-nm/llvm-nm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ cl::alias ReverseSortr("r", cl::desc("Alias for --reverse-sort"),
cl::aliasopt(ReverseSort), cl::Grouping);

cl::opt<bool> PrintSize("print-size",
cl::desc("Show symbol size instead of address"),
cl::desc("Show symbol size as well as address"),
cl::cat(NMCat));
cl::alias PrintSizeS("S", cl::desc("Alias for --print-size"),
cl::aliasopt(PrintSize), cl::Grouping);
Expand Down

0 comments on commit 2c16bb8

Please sign in to comment.