mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-02 01:46:06 +00:00

This patch implements proposal https://lists.llvm.org/pipermail/llvm-dev/2020-August/144579.html llvm-dwarfutil - is a tool that is used for processing debug info(DWARF) located in built binary files to improve debug info quality, reduce debug info size. The patch currently implements smaller set of command-line options(comparing to the proposal): ``` ./llvm-dwarfutil [options] <input file> <output file> --garbage-collection Do garbage collection for debug info(default) -j <value> Alias for --num-threads --no-garbage-collection Don`t do garbage collection for debug info --no-odr-deduplication Don`t do ODR deduplication for debug types --no-odr Alias for --no-odr-deduplication --no-separate-debug-file Create single output file, containing debug tables(default) --num-threads <threads> Number of available threads for multi-threaded execution. Defaults to the number of cores on the current machine --odr-deduplication Do ODR deduplication for debug types(default) --odr Alias for --odr-deduplication --separate-debug-file Create two output files: file w/o debug tables and file with debug tables --tombstone [bfd,maxpc,exec,universal] Tombstone value used as a marker of invalid address(default: universal) =bfd - Zero for all addresses and [1,1] for DWARF v4 (or less) address ranges and exec =maxpc - Minus 1 for all addresses and minus 2 for DWARF v4 (or less) address ranges =exec - Match with address ranges of executable sections =universal - Both: bfd and maxpc ``` Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D86539
89 lines
1.4 KiB
ReStructuredText
89 lines
1.4 KiB
ReStructuredText
LLVM Command Guide
|
|
------------------
|
|
|
|
The following documents are command descriptions for all of the LLVM tools.
|
|
These pages describe how to use the LLVM commands and what their options are.
|
|
Note that these pages do not describe all of the options available for all
|
|
tools. To get a complete listing, pass the ``--help`` (general options) or
|
|
``--help-hidden`` (general and debugging options) arguments to the tool you are
|
|
interested in.
|
|
|
|
Basic Commands
|
|
~~~~~~~~~~~~~~
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
dsymutil
|
|
llc
|
|
lli
|
|
llvm-as
|
|
llvm-config
|
|
llvm-cov
|
|
llvm-cxxmap
|
|
llvm-diff
|
|
llvm-dis
|
|
llvm-dwarfdump
|
|
llvm-dwarfutil
|
|
llvm-lib
|
|
llvm-libtool-darwin
|
|
llvm-link
|
|
llvm-lipo
|
|
llvm-mca
|
|
llvm-otool
|
|
llvm-profdata
|
|
llvm-readobj
|
|
llvm-remark-size-diff
|
|
llvm-stress
|
|
llvm-symbolizer
|
|
opt
|
|
|
|
GNU binutils replacements
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
llvm-addr2line
|
|
llvm-ar
|
|
llvm-cxxfilt
|
|
llvm-install-name-tool
|
|
llvm-nm
|
|
llvm-objcopy
|
|
llvm-objdump
|
|
llvm-ranlib
|
|
llvm-readelf
|
|
llvm-size
|
|
llvm-strings
|
|
llvm-strip
|
|
|
|
Debugging Tools
|
|
~~~~~~~~~~~~~~~
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
bugpoint
|
|
llvm-extract
|
|
llvm-bcanalyzer
|
|
|
|
Developer Tools
|
|
~~~~~~~~~~~~~~~
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
|
|
FileCheck
|
|
tblgen
|
|
clang-tblgen
|
|
lldb-tblgen
|
|
llvm-tblgen
|
|
mlir-tblgen
|
|
lit
|
|
llvm-exegesis
|
|
llvm-ifs
|
|
llvm-locstats
|
|
llvm-pdbutil
|
|
llvm-profgen
|
|
llvm-tli-checker
|