[PATCH] D28769: [ARM] Create objdump subtarget from build attributes

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 03:44:47 PST 2017


samparker created this revision.
samparker added a subscriber: llvm-commits.
Herald added subscribers: mgorny, rengolin, aemerson.

My previous commits were reverted in https://reviews.llvm.org/D28683, this patch reapplies them along with the fix from https://reviews.llvm.org/D28678 which has already been accepted. The only original addition that this patch introduces is a check in setARMSubArch to ensure that the CPU_arch attribute exists before trying to read it, as it would seem to be causing the sanitizer failure.


https://reviews.llvm.org/D28769

Files:
  include/llvm/Object/ELFObjectFile.h
  include/llvm/Object/ObjectFile.h
  include/llvm/Support/ARMAttributeParser.h
  include/llvm/Support/ARMBuildAttributes.h
  lib/Object/ELFObjectFile.cpp
  lib/Support/ARMAttributeParser.cpp
  lib/Target/ARM/ARMAsmPrinter.cpp
  test/tools/llvm-objdump/ARM/v5t-subarch.s
  test/tools/llvm-objdump/ARM/v5te-subarch.s
  test/tools/llvm-objdump/ARM/v5tej-subarch.s
  test/tools/llvm-objdump/ARM/v6-subarch.s
  test/tools/llvm-objdump/ARM/v6k-subarch.s
  test/tools/llvm-objdump/ARM/v6m-subarch.s
  test/tools/llvm-objdump/ARM/v6t2-subarch.s
  test/tools/llvm-objdump/ARM/v7m-subarch.s
  tools/llvm-objdump/llvm-objdump.cpp
  tools/llvm-readobj/ELFDumper.cpp
  unittests/Support/ARMAttributeParser.cpp
  unittests/Support/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28769.84536.patch
Type: text/x-patch
Size: 37887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170116/053ab238/attachment.bin>


More information about the llvm-commits mailing list