]> granicus.if.org Git - llvm/commitdiff
[llvm-nm] Fix docs and help text for --print-size
authorJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 12 Jun 2019 10:44:41 +0000 (10:44 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Wed, 12 Jun 2019 10:44:41 +0000 (10:44 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363136 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CommandGuide/llvm-nm.rst
tools/llvm-nm/llvm-nm.cpp

index b5bd756d5429bf289f5192e40f44bc32286d3ad0..278dd27a58508b564723fee683cc66993355dd90 100644 (file)
@@ -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
 
index 871ca638d9d75862d368ecb623ddf49cd40b82eb..08e0e104be196097cc66aa95eb1116e3038db23f 100644 (file)
@@ -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);