]> granicus.if.org Git - llvm/commit
[llvm-objdump] Switch between ARM/Thumb based on mapping symbols.
authorEli Friedman <efriedma@quicinc.com>
Thu, 20 Jun 2019 00:29:40 +0000 (00:29 +0000)
committerEli Friedman <efriedma@quicinc.com>
Thu, 20 Jun 2019 00:29:40 +0000 (00:29 +0000)
commitcd0e53865d88878ae5ce72510ddb56b7683d4ad7
tree5230305f1dccec819ee50f90018b5a761313e6e1
parentd5a79b972759e8a0bc0b8214738b8beb976e90f6
[llvm-objdump] Switch between ARM/Thumb based on mapping symbols.

The ARMDisassembler changes allow changing between ARM and Thumb mode
based on the MCSubtargetInfo, rather than the Target, which simplifies
the other changes a bit.

I'm not really happy with adding more target-specific logic to
tools/llvm-objdump/, but there isn't any easy way around it: the logic
in question specifically applies to disassembling an object file, and
that code simply isn't located in lib/Target, at least at the moment.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363903 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
test/CodeGen/ARM/inlineasm-switch-mode.ll
test/tools/llvm-objdump/ARM/v7r-subfeatures.s
tools/llvm-objdump/llvm-objdump.cpp