[mips] Move MipsTargetLowering::MipsCC::regSize() to MipsSubtarget::getGPRSizeInBytes()
[oota-llvm.git] / lib / Target / Mips / MipsSubtarget.h
index b6e23ceb7ca592fea8923e7f647e30dc8e709bde..bc504c42926bf86ec32fa17f0d029fff0d23192d 100644 (file)
@@ -210,6 +210,7 @@ public:
   bool isNotFP64bit() const { return !IsFP64bit; }
   bool isGP64bit() const { return IsGP64bit; }
   bool isGP32bit() const { return !IsGP64bit; }
+  unsigned getGPRSizeInBytes() const { return isGP64bit() ? 8 : 4; }
   bool isSingleFloat() const { return IsSingleFloat; }
   bool isNotSingleFloat() const { return !IsSingleFloat; }
   bool hasVFPU() const { return HasVFPU; }