[PATCH] D25867: [ARM] Enable llvm-objdump to decide target triple for ARM
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 04:00:08 PDT 2016
samparker created this revision.
samparker added a reviewer: llvm-commits.
Herald added subscribers: modocache, mgorny, beanz, rengolin, aemerson.
I've moved the ARM build attribute parsing code out of llvm-readobj and into the support library (although maybe this should be in Object). On the creation of an ELFFileObject, the attributes are parsed if they exist. The parser has been modified to store all the attributes as it goes, and I've added numerous getter functions.
The ELFFileObject now also provides a function to try to decide the target triple to use from the build attributes, and there is now also a getFeatures() function for ARM. llvm-objdump uses these functions to setup the target triple, if a subarch isn't provided, as well as the subtarget features.
https://reviews.llvm.org/D25867
Files:
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/ObjectFile.h
include/llvm/Support/ARMAttributeParser.h
lib/Object/ELFObjectFile.cpp
lib/Support/ARMAttributeParser.cpp
lib/Support/CMakeLists.txt
test/tools/llvm-objdump/ARM/buildattrs-armv6.s
test/tools/llvm-objdump/ARM/buildattrs-armv7.s
test/tools/llvm-objdump/ARM/buildattrs-thumbv7.s
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-readobj/ARMAttributeParser.cpp
tools/llvm-readobj/ARMAttributeParser.h
tools/llvm-readobj/CMakeLists.txt
tools/llvm-readobj/ELFDumper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25867.75409.patch
Type: text/x-patch
Size: 78935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161021/21db713f/attachment-0001.bin>
More information about the llvm-commits
mailing list