diff options
author | Vinicius Tinti <viniciustinti@gmail.com> | 2020-07-31 22:45:05 -0300 |
---|---|---|
committer | Vinicius Tinti <viniciustinti@gmail.com> | 2021-03-24 13:22:35 +0000 |
commit | 804ff7f2933f2b0845da12c84c439a2e3d8b4e69 (patch) | |
tree | 20f46c45ab6536caac8ff4928f9290f53345cdd1 /llvm/docs/CommandGuide/llvm-objdump.rst | |
parent | cfc36bf0179435ecbd489761bd7d5dae00846c87 (diff) | |
download | llvm-804ff7f2933f2b0845da12c84c439a2e3d8b4e69.zip llvm-804ff7f2933f2b0845da12c84c439a2e3d8b4e69.tar.gz llvm-804ff7f2933f2b0845da12c84c439a2e3d8b4e69.tar.bz2 |
[llvm-objdump] Implement --prefix-strip option
The option `--prefix-strip` is only used when `--prefix` is not empty.
It removes N initial directories from absolute paths before adding the
prefix.
This matches GNU's objdump behavior.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D96679
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index e92654b..49edbcd 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -172,6 +172,12 @@ OPTIONS When disassembling with the :option:`--source` option, prepend ``prefix`` to absolute paths. +.. option:: --prefix-strip=<level> + + When disassembling with the :option:`--source` option, strip out ``level`` + initial directories from absolute paths. This option has no effect without + :option:`--prefix`. + .. option:: --print-imm-hex Use hex format when printing immediate values in disassembly output. |