mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-30 07:14:53 +00:00
Remove the cached little endian variable. We can get it easily off
of the DataLayout. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210555 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b8dca33a05
commit
75b55475bc
@ -36,14 +36,14 @@ AArch64Subtarget::AArch64Subtarget(const std::string &TT,
|
|||||||
: AArch64GenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
|
: AArch64GenSubtargetInfo(TT, CPU, FS), ARMProcFamily(Others),
|
||||||
HasFPARMv8(false), HasNEON(false), HasCrypto(false), HasCRC(false),
|
HasFPARMv8(false), HasNEON(false), HasCrypto(false), HasCRC(false),
|
||||||
HasZeroCycleRegMove(false), HasZeroCycleZeroing(false), CPUString(CPU),
|
HasZeroCycleRegMove(false), HasZeroCycleZeroing(false), CPUString(CPU),
|
||||||
TargetTriple(TT), IsLittleEndian(LittleEndian),
|
TargetTriple(TT),
|
||||||
// This nested ternary is horrible, but DL needs to be properly
|
// This nested ternary is horrible, but DL needs to be properly
|
||||||
// initialized
|
// initialized
|
||||||
// before TLInfo is constructed.
|
// before TLInfo is constructed.
|
||||||
DL(isTargetMachO()
|
DL(isTargetMachO()
|
||||||
? "e-m:o-i64:64-i128:128-n32:64-S128"
|
? "e-m:o-i64:64-i128:128-n32:64-S128"
|
||||||
: (IsLittleEndian ? "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")),
|
: "E-m:e-i64:64-i128:128-n32:64-S128")),
|
||||||
FrameLowering() {
|
FrameLowering() {
|
||||||
// Determine default and user-specified characteristics
|
// Determine default and user-specified characteristics
|
||||||
|
|
||||||
|
@ -51,9 +51,6 @@ protected:
|
|||||||
/// TargetTriple - What processor and OS we're targeting.
|
/// TargetTriple - What processor and OS we're targeting.
|
||||||
Triple TargetTriple;
|
Triple TargetTriple;
|
||||||
|
|
||||||
/// IsLittleEndian - Is the target little endian?
|
|
||||||
bool IsLittleEndian;
|
|
||||||
|
|
||||||
const DataLayout DL;
|
const DataLayout DL;
|
||||||
AArch64FrameLowering FrameLowering;
|
AArch64FrameLowering FrameLowering;
|
||||||
|
|
||||||
@ -78,7 +75,7 @@ public:
|
|||||||
bool hasCrypto() const { return HasCrypto; }
|
bool hasCrypto() const { return HasCrypto; }
|
||||||
bool hasCRC() const { return HasCRC; }
|
bool hasCRC() const { return HasCRC; }
|
||||||
|
|
||||||
bool isLittleEndian() const { return IsLittleEndian; }
|
bool isLittleEndian() const { return DL.isLittleEndian(); }
|
||||||
|
|
||||||
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
|
bool isTargetDarwin() const { return TargetTriple.isOSDarwin(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user