From 6016a5e6b2735e66bb83e4210633a96ff98fa100 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Wed, 12 Jun 2019 10:44:41 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363136 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/llvm-nm.rst | 2 +- tools/llvm-nm/llvm-nm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CommandGuide/llvm-nm.rst b/docs/CommandGuide/llvm-nm.rst index b5bd756d542..278dd27a585 100644 --- a/docs/CommandGuide/llvm-nm.rst +++ b/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/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 871ca638d9d..08e0e104be1 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/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 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); -- 2.40.0