[all-commits] [llvm/llvm-project] 95062d: [llvm-objdump] Enable disassembly color highlighting

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Sep 1 09:32:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 95062d74676b98a85e4d3db6628d239b15dbeb35
      https://github.com/llvm/llvm-project/commit/95062d74676b98a85e4d3db6628d239b15dbeb35
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-09-01 (Fri, 01 Sep 2023)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    A llvm/llvm/llvm/test/tools/llvm-objdump/MachO/arm64-disassembly-color.s
    A llvm/llvm/test/tools/llvm-objdump/MachO/arm64-disassembly-color.s
    A llvm/test/tools/llvm-objdump/MachO/arm64-disassembly-color.s
    M llvm/tools/llvm-objdump/ObjdumpOpts.td
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list