diff options
author | Vinicius Tinti <viniciustinti@gmail.com> | 2020-10-16 15:35:19 +0100 |
---|---|---|
committer | Renato Golin <rengolin@systemcall.eu> | 2020-10-16 17:50:42 +0100 |
commit | e95f9a23fad52ffa3a5b6466c7dcdf910d099956 (patch) | |
tree | 36f0aee9f0648d96f9f77fbc18f2372b03b736d0 /llvm/docs | |
parent | 3d4bba302d2460b9ac6463ef920c301f1f40fb41 (diff) | |
download | llvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.zip llvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.tar.gz llvm-e95f9a23fad52ffa3a5b6466c7dcdf910d099956.tar.bz2 |
[llvm-objdump] Implement --prefix option
The prefix given to --prefix will be added to GNU absolute paths when
used with --source option (source interleaved with the disassembly).
This matches GNU's objdump behavior.
GNU and C++17 rules for absolute paths are different.
Differential Revision: https://reviews.llvm.org/D85024
Fixes PR46368.
Differential Revision: https://reviews.llvm.org/D85024
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objdump.rst | 5 | ||||
-rw-r--r-- | llvm/docs/llvm-objdump.1 | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst index e4f063b..4acb048 100644 --- a/llvm/docs/CommandGuide/llvm-objdump.rst +++ b/llvm/docs/CommandGuide/llvm-objdump.rst @@ -167,6 +167,11 @@ OPTIONS When disassembling, do not print the raw bytes of each instruction. +.. option:: --prefix=<prefix> + + When disassembling with the :option:`--source` option, prepend ``prefix`` to + absolute paths. + .. option:: --print-imm-hex Use hex format when printing immediate values in disassembly output. diff --git a/llvm/docs/llvm-objdump.1 b/llvm/docs/llvm-objdump.1 index 85c40d7..1cf557d 100644 --- a/llvm/docs/llvm-objdump.1 +++ b/llvm/docs/llvm-objdump.1 @@ -105,6 +105,10 @@ Print no leading address. Print no leading headers. .It Fl -no-show-raw-insn When disassembling instructions, do not print the instruction bytes. +.It Fl -prefix Ns = Ns Ar PREFIX +When disassembling, add +.Ar PREFIX +to absolute paths. .It Fl -print-imm-hex Use hex format for immediate values. .It Fl -private-header |