Report endianness in output of {dwarf, obj}dump
authorRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 17:01:33 +0000 (17:01 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 17:01:33 +0000 (17:01 +0000)
commitc3a1f3e1362e67580a708ee648cfdcdc0c956641
tree72f53c3cd5dd082df7f771625358ac98d9627683
parent1513681a0b6feefb1cf7253c89240571c0233cba
Report endianness in output of {dwarf, obj}dump

For biendian targets like ARM and AArch64, it is useful to have the
output of the llvm-dwarfdump and llvm-objdump report the endianness
used when the object files were generated.

Patch by Charlie Turner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218391 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFObjectFile.h
test/tools/llvm-dwarfdump/AArch64/big-endian-dump.ll
test/tools/llvm-dwarfdump/AArch64/little-endian-dump.ll [new file with mode: 0644]
test/tools/llvm-dwarfdump/ARM/big-endian-dump.ll
test/tools/llvm-dwarfdump/ARM/little-endian-dump.ll [new file with mode: 0644]