Remove the cached little endian variable. We can get it easily off
authorEric Christopher <echristo@gmail.com>
Tue, 10 Jun 2014 18:11:20 +0000 (18:11 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 10 Jun 2014 18:11:20 +0000 (18:11 +0000)
of the DataLayout.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210555 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64Subtarget.cpp
lib/Target/AArch64/AArch64Subtarget.h

index cf6d08f23805960910f7e8b01932de6f1053dcc1..e68f5276b57fcc95e59a1d812f167b28e930b129 100644 (file)
@@ -36,14 +36,14 @@ AArch64Subtarget::AArch64Subtarget(const std::string &TT,
     : AArch64GenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
       HasFPARMv8(false), HasNEON(false), HasCrypto(false), HasCRC(false),
       HasZeroCycleRegMove(false), HasZeroCycleZeroing(false), CPUString(CPU),
-      TargetTriple(TT), IsLittleEndian(LittleEndian),
+      TargetTriple(TT),
       // This nested ternary is horrible, but DL needs to be properly
       // initialized
       // before TLInfo is constructed.
       DL(isTargetMachO()
              ? "e-m:o-i64:64-i128:128-n32:64-S128"
-             : (IsLittleEndian ? "e-m:e-i64:64-i128:128-n32:64-S128"
-                               : "E-m:e-i64:64-i128:128-n32:64-S128")),
+             : (LittleEndian ? "e-m:e-i64:64-i128:128-n32:64-S128"
+                             : "E-m:e-i64:64-i128:128-n32:64-S128")),
       FrameLowering() {
   // Determine default and user-specified characteristics
 
index 117963903bb7744fb6f8c56e43f26493419d723e..5de701b725f88f07ef5cb163ea8c08ab9dca73f4 100644 (file)
@@ -51,9 +51,6 @@ protected:
   /// TargetTriple - What processor and OS we're targeting.
   Triple TargetTriple;
 
-  /// IsLittleEndian - Is the target little endian?
-  bool IsLittleEndian;
-
   const DataLayout DL;
   AArch64FrameLowering FrameLowering;
 
@@ -78,7 +75,7 @@ public:
   bool hasCrypto() const { return HasCrypto; }
   bool hasCRC() const { return HasCRC; }
 
-  bool isLittleEndian() const { return IsLittleEndian; }
+  bool isLittleEndian() const { return DL.isLittleEndian(); }
 
   bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }