OSDN Git Service

[llvm-objdump] Implement -Mreg-names-raw/-std options.
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 26 Feb 2019 12:15:14 +0000 (12:15 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 26 Feb 2019 12:15:14 +0000 (12:15 +0000)
commitb7fb794e26670981030933e6497601e10b68e454
treea3755f96a9d08ba52134df91dc45ef2bbc7267a1
parent5f8f5b4d3abd32e71fa3a1f51a278093c1a90ae0
[llvm-objdump] Implement -Mreg-names-raw/-std options.

The --disassembler-options, or -M, are used to customize
the disassembler and affect its output.

The two implemented options allow selecting register names on ARM:
* With -Mreg-names-raw, the disassembler uses rNN for all registers.
* With -Mreg-names-std it prints sp, lr and pc for r13, r14 and r15,
  which is the default behavior of llvm-objdump.

Differential Revision: https://reviews.llvm.org/D57680

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354870 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCInstPrinter.h
include/llvm/Target/Target.td
lib/Target/ARM/ARMRegisterInfo.td
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.h
test/tools/llvm-objdump/ARM/reg-names.s [new file with mode: 0644]
tools/llvm-objdump/llvm-objdump.cpp
utils/TableGen/AsmWriterEmitter.cpp