From 0753fc1850a1ca4d17acca854d830d67737fd623 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 11 Feb 2008 10:37:04 +0000 Subject: Add a isBigEndian method to complement isLittleEndian. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46954 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 9094e374c8..947a1d67a8 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; } -- cgit v1.2.3-70-g09d2