aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide/llvm-objdump.rst
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-09-01 08:50:05 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-09-01 09:32:34 -0700
commit95062d74676b98a85e4d3db6628d239b15dbeb35 (patch)
treeb3dadc9562a05e0a02d3d366d75cb750dcb3c8c0 /llvm/docs/CommandGuide/llvm-objdump.rst
parent14c58cf5c39a39a335893bc98493c5edc75a91b3 (diff)
downloadllvm-95062d74676b98a85e4d3db6628d239b15dbeb35.zip
llvm-95062d74676b98a85e4d3db6628d239b15dbeb35.tar.gz
llvm-95062d74676b98a85e4d3db6628d239b15dbeb35.tar.bz2
[llvm-objdump] Enable disassembly color highlighting
Enable color highlighting of disassembly in llvm-objdump. This patch introduces a new flag --disassembler-color=<mode> that enables or disables highlighting disassembly with ANSI escape codes. The default mode is to enable color highlighting if outputting to a color-enabled terminal. Differential revision: https://reviews.llvm.org/D159224
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objdump.rst')
-rw-r--r--llvm/docs/CommandGuide/llvm-objdump.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objdump.rst b/llvm/docs/CommandGuide/llvm-objdump.rst
index cd3d14b..b156b21 100644
--- a/llvm/docs/CommandGuide/llvm-objdump.rst
+++ b/llvm/docs/CommandGuide/llvm-objdump.rst
@@ -179,6 +179,15 @@ OPTIONS
* ``att``: x86 only (default). Print in the AT&T syntax.
* ``intel``: x86 only. Print in the intel syntax.
+
+.. option:: --disassembler-color=<mode>
+
+ Enable or disable disassembler color output.
+
+ * ``off``: Disable disassembler color output.
+ * ``on``: Enable disassembler color output.
+ * ``terminal``: Enable disassembler color output if the terminal supports it (default).
+
.. option:: --mcpu=<cpu-name>
Target a specific CPU type for disassembly. Specify ``--mcpu=help`` to display