Report endianness in output of {dwarf, obj}dump
authorRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 20:07:41 +0000 (20:07 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 24 Sep 2014 20:07:41 +0000 (20:07 +0000)
commit329e09f08c27ff5226e71b27a37eaa27bb5de9ec
tree512541619cd56597d5b6d37f89959ac93e14f32e
parentbc7101b134cbd66a9e2ef1edfd56fe4ec24e5e1c
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@218408 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]