summaryrefslogtreecommitdiff
path: root/lib/Target/AArch64/AArch64Subtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-10 18:11:20 +0000
committerEric Christopher <echristo@gmail.com>2014-06-10 18:11:20 +0000
commit75b55475bcc446e780125739a9e46854babc1887 (patch)
tree895b7869ff727a1147eeb430d50167e39e44f8fc /lib/Target/AArch64/AArch64Subtarget.h
parentb8dca33a0540143f016ad14eea13766c59338fe8 (diff)
downloadllvm-75b55475bcc446e780125739a9e46854babc1887.tar.gz
llvm-75b55475bcc446e780125739a9e46854babc1887.tar.bz2
llvm-75b55475bcc446e780125739a9e46854babc1887.tar.xz
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
Diffstat (limited to 'lib/Target/AArch64/AArch64Subtarget.h')
-rw-r--r--lib/Target/AArch64/AArch64Subtarget.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/AArch64/AArch64Subtarget.h b/lib/Target/AArch64/AArch64Subtarget.h
index 117963903b..5de701b725 100644
--- a/lib/Target/AArch64/AArch64Subtarget.h
+++ b/lib/Target/AArch64/AArch64Subtarget.h
@@ -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(); }