[ELF] Move ELF{32,64}{L,B}E typedefs to llvm.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 25 Jun 2015 23:41:23 +0000 (23:41 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 25 Jun 2015 23:41:23 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240731 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELFTypes.h

index ea54cac36d101ddbbe11901df6039382a517010d..8a648e509889ce84977cd99bf585ae7abaff6466 100644 (file)
@@ -24,6 +24,11 @@ template <endianness target_endianness, bool is64Bits> struct ELFType {
   static const bool Is64Bits = is64Bits;
 };
 
+typedef ELFType<support::little, false> ELF32LE;
+typedef ELFType<support::big, false> ELF32BE;
+typedef ELFType<support::little, true> ELF64LE;
+typedef ELFType<support::big, true> ELF64BE;
+
 // Use an alignment of 2 for the typedefs since that is the worst case for
 // ELF files in archives.