aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/llvm-objdump.rst
diff options
context:
space:
mode:
authorVinicius Tinti <viniciustinti@gmail.com>2020-10-16 15:35:19 +0100
committerRenato Golin <rengolin@systemcall.eu>2020-10-16 17:50:42 +0100
commite95f9a23fad52ffa3a5b6466c7dcdf910d099956 (patch)
tree36f0aee9f0648d96f9f77fbc18f2372b03b736d0 /llvm/docs/CommandGuide/llvm-objdump.rst
parent3d4bba302d2460b9ac6463ef920c301f1f40fb41 (diff)
downloadllvm-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/CommandGuide/llvm-objdump.rst')
-rw-r--r--llvm/docs/CommandGuide/llvm-objdump.rst5
1 files changed, 5 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.