[llvm-objcopy][llvm-strip] Improve --discard-all documentation and help

The help text and documentation for the --discard-all option failed to
mention that the option also causes the removal of debug sections. This
change fixes both for both llvm-objcopy and llvm-strip.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D97662
This commit is contained in:
James Henderson 2021-02-23 13:55:48 +00:00
parent 8bb74d16ef
commit f2e85c3101
3 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ multiple file formats.
Remove most local symbols from the output. Different file formats may limit
this to a subset of the local symbols. For example, file and section symbols in
ELF objects will not be discarded.
ELF objects will not be discarded. Additionally, remove all debug sections.
.. option:: --dump-section <section>=<file>

View File

@ -39,7 +39,7 @@ multiple file formats.
Remove most local symbols from the output. Different file formats may limit
this to a subset of the local symbols. For example, file and section symbols in
ELF objects will not be discarded.
ELF objects will not be discarded. Additionally, remove all debug sections.
.. option:: --enable-deterministic-archives, -D

View File

@ -99,7 +99,8 @@ def X : Flag<["-"], "X">,
def discard_all
: Flag<["--"], "discard-all">,
HelpText<"Remove all local symbols except file and section symbols">;
HelpText<"Remove all local symbols except file and section symbols. Also "
"remove all debug sections">;
def x : Flag<["-"], "x">,
Alias<discard_all>,
HelpText<"Alias for --discard-all">;