[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)
commit2d3faad706c81814abc5e4080df38c4bccde1d48
tree9a11b749881378558b3eabd238ac516e787b8b01
parente42be1eae230d0ff3f650fcea7826da4842e7371
[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

llvm-svn: 354870
llvm/include/llvm/MC/MCInstPrinter.h
llvm/include/llvm/Target/Target.td
llvm/lib/Target/ARM/ARMRegisterInfo.td
llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.h
llvm/test/tools/llvm-objdump/ARM/reg-names.s [new file with mode: 0644]
llvm/tools/llvm-objdump/llvm-objdump.cpp
llvm/utils/TableGen/AsmWriterEmitter.cpp