[Object][ELF] Simplify ELFObjectFile by using ELFType.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 15 Jan 2013 07:44:25 +0000 (07:44 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 15 Jan 2013 07:44:25 +0000 (07:44 +0000)
commitac97f5ce486d1ca2967607028eacddd860aaddd0
tree4a08e2f3f6154b0b9ccf6487a63e9f6ef3e5f668
parentb5f8cd5bb04df52c05cbd1eddf081e6d9cf9cd64
[Object][ELF] Simplify ELFObjectFile by using ELFType.

This simplifies the usage and implementation of ELFObjectFile by using ELFType
to replace:

<endianness target_endianness, std::size_t max_alignment, bool is64Bits>

This does complicate the base ELF types as they must now use template template
parameters to partially specialize for the 32 and 64bit cases. However these
are only defined once.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172515 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/Object/ELFObjectFile.cpp
tools/llvm-objdump/ELFDump.cpp