From a2497b43e3998d3e4e22380906f0d3bc5c49adff Mon Sep 17 00:00:00 2001 From: James Henderson Date: Fri, 13 Sep 2019 15:01:39 +0000 Subject: [PATCH] [docs][llvm-readelf][llvm-readobj] Improve --stack-sizes documentation llvm-readobj's document was missing --stack-sizes entirely from its document, so this patch adds it. It also adds a note to the llvm-readelf description that the switch is only implemented for GNU style output currently. For reference, --stack-sizes was added in r367942. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D67548 llvm-svn: 371862 --- llvm/docs/CommandGuide/llvm-readelf.rst | 3 ++- llvm/docs/CommandGuide/llvm-readobj.rst | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/llvm/docs/CommandGuide/llvm-readelf.rst b/llvm/docs/CommandGuide/llvm-readelf.rst index ecdb8f8..6aa9047 100644 --- a/llvm/docs/CommandGuide/llvm-readelf.rst +++ b/llvm/docs/CommandGuide/llvm-readelf.rst @@ -163,7 +163,8 @@ OPTIONS .. option:: --stack-sizes Display the contents of the stack sizes section(s), i.e. pairs of function - names and the size of their stack frames. + names and the size of their stack frames. Currently only implemented for GNU + style output. .. option:: --string-dump=, -p diff --git a/llvm/docs/CommandGuide/llvm-readobj.rst b/llvm/docs/CommandGuide/llvm-readobj.rst index d15a673..30f7976 100644 --- a/llvm/docs/CommandGuide/llvm-readobj.rst +++ b/llvm/docs/CommandGuide/llvm-readobj.rst @@ -214,6 +214,12 @@ The following options are implemented only for the ELF file format. Display the section to segment mapping. +.. option:: --stack-sizes + + Display the contents of the stack sizes section(s), i.e. pairs of function + names and the size of their stack frames. Currently only implemented for GNU + style output. + .. option:: --version-info, -V Display version sections. -- 2.7.4