aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-02-11 10:37:04 +0000
committerDuncan Sands <baldrick@free.fr>2008-02-11 10:37:04 +0000
commit9ff8fbf70903ad5bc02996bb15834f24231290a2 (patch)
treeaab2531a40f5fd2b72f1c12ff0701d34b63cd97d /include
parentb427252853b1b0ddd3eb0d1ca32ed6163b38827d (diff)
downloadexternal_llvm-9ff8fbf70903ad5bc02996bb15834f24231290a2.zip
external_llvm-9ff8fbf70903ad5bc02996bb15834f24231290a2.tar.gz
external_llvm-9ff8fbf70903ad5bc02996bb15834f24231290a2.tar.bz2
Add a isBigEndian method to complement isLittleEndian.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 9094e37..947a1d6 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -85,6 +85,7 @@ public:
TargetMachine &getTargetMachine() const { return TM; }
const TargetData *getTargetData() const { return TD; }
+ bool isBigEndian() const { return !IsLittleEndian; }
bool isLittleEndian() const { return IsLittleEndian; }
MVT::ValueType getPointerTy() const { return PointerTy; }
MVT::ValueType getShiftAmountTy() const { return ShiftAmountTy; }