[PATCH] D62482: Sanitize llvm-size help

serge via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 05:17:09 PDT 2019


serge-sans-paille created this revision.
serge-sans-paille added reviewers: jhenderson, enderby.
Herald added subscribers: llvm-commits, rupprecht.
Herald added a project: LLVM.
serge-sans-paille added a comment.

For reference, unfiltered output:

  OVERVIEW: llvm object size dumper
  
  USAGE: llvm-size [options] <input files>
  
  OPTIONS:
  
  Color Options:
  
    --color                            - Use colors in output (default=autodetect)
  
  General options:
  
    --remarks-yaml-string-table        - 
    --safepoint-ir-verifier-print-only - 
    --time-trace-granularity=<uint>    - Minimum time granularity (in microseconds) traced by time profiler
  
  Generic Options:
  
    --help                             - Display available options (--help-hidden for more)
    --help-list                        - Display list of available options (--help-list-hidden for more)
    --version                          - Display the version of this program
  
  llvm-size Options:
  
    Specify output format
        -A                               - System V format
        -B                               - Berkeley format
        -m                               - Darwin -m format
    --arch=<string>                    - architecture(s) from a Mach-O file to dump
    --common                           - Print common symbols in the ELF file.  When using Berkely format, this is added to bss.
    Print size in radix:
        -o                               - Print size in octal
        -d                               - Print size in decimal
        -x                               - Print size in hexadecimal
    --format=<value>                   - Specify output format
      =sysv                            -   System V format
      =berkeley                        -   Berkeley format
      =darwin                          -   Darwin -m format
    -l                                 - When format is darwin, use long format to include addresses and offsets.
    --radix=<value>                    - Print size in radix
      =8                               -   Print size in octal
      =10                              -   Print size in decimal
      =16                              -   Print size in hexadecimal
    --totals                           - Print totals of all objects - Berkeley format only

And i've analyzed the callgraph, none of the filtered option seems relevant.


emove irrelevant options from standard help output.

New output:

  OVERVIEW: llvm object size dumper
  
  USAGE: llvm-size [options] <input files>
  
  OPTIONS:
  
  Generic Options:
  
    --help           - Display available options (--help-hidden for more)
    --help-list      - Display list of available options (--help-list-hidden for more)
    --version        - Display the version of this program
  
  llvm-size Options:
  
    Specify output format
        -A             - System V format
        -B             - Berkeley format
        -m             - Darwin -m format
    --arch=<string>  - architecture(s) from a Mach-O file to dump
    --common         - Print common symbols in the ELF file.  When using Berkely format, this is added to bss.
    Print size in radix:
        -o             - Print size in octal
        -d             - Print size in decimal
        -x             - Print size in hexadecimal
    --format=<value> - Specify output format
      =sysv          -   System V format
      =berkeley      -   Berkeley format
      =darwin        -   Darwin -m format
    -l               - When format is darwin, use long format to include addresses and offsets.
    --radix=<value>  - Print size in radix
      =8             -   Print size in octal
      =10            -   Print size in decimal
      =16            -   Print size in hexadecimal
    --totals         - Print totals of all objects - Berkeley format only


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62482

Files:
  llvm/tools/llvm-size/llvm-size.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62482.201506.patch
Type: text/x-patch
Size: 4815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190527/faaa16ae/attachment.bin>


More information about the llvm-commits mailing list