mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +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),
|
||||
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
|
||||
|
||||
|
@ -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(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user