diff options
author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-12 10:44:41 +0000 |
---|---|---|
committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-06-12 10:44:41 +0000 |
commit | 2c16bb80348db39de13c29c174f1def8f84f853c (patch) | |
tree | 1017e1539ef2ea664875a0d65a2b4512c419cf2e | |
parent | f243ca4af8c660cf6add48de21dacce8b6912cfe (diff) | |
download | bcm5719-llvm-2c16bb80348db39de13c29c174f1def8f84f853c.tar.gz bcm5719-llvm-2c16bb80348db39de13c29c174f1def8f84f853c.zip |
[llvm-nm] Fix docs and help text for --print-size
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
-rw-r--r-- | llvm/docs/CommandGuide/llvm-nm.rst | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/CommandGuide/llvm-nm.rst b/llvm/docs/CommandGuide/llvm-nm.rst index b5bd756d542..278dd27a585 100644 --- a/llvm/docs/CommandGuide/llvm-nm.rst +++ b/llvm/docs/CommandGuide/llvm-nm.rst @@ -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 diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index 871ca638d9d..08e0e104be1 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -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); |