Rename ("shrinkify") MVT::isExtendedValueType to MVT::isExtendedVT.
[oota-llvm.git] / include / llvm / CodeGen / CallingConvLower.h
index 5e5bbcecc6b6f23ba5e3c336f2ef43ce5141cda2..959d0528c651b0185beadb61ac804bdb31f2f67a 100644 (file)
@@ -48,10 +48,10 @@ private:
   LocInfo HTP : 7;
   
   /// ValVT - The type of the value being assigned.
-  MVT::ValueType ValVT : 8;
+  MVT::ValueType ValVT;
 
   /// LocVT - The type of the location being assigned to.
-  MVT::ValueType LocVT : 8;
+  MVT::ValueType LocVT;
 public:
     
   static CCValAssign getReg(unsigned ValNo, MVT::ValueType ValVT,
@@ -105,6 +105,7 @@ typedef bool CCAssignFn(unsigned ValNo, MVT::ValueType ValVT,
 /// stack slots are used.  It provides accessors to allocate these values.
 class CCState {
   unsigned CallingConv;
+  bool IsVarArg;
   const TargetMachine &TM;
   const MRegisterInfo &MRI;
   SmallVector<CCValAssign, 16> &Locs;
@@ -112,7 +113,7 @@ class CCState {
   unsigned StackOffset;
   SmallVector<uint32_t, 16> UsedRegs;
 public:
-  CCState(unsigned CC, const TargetMachine &TM,
+  CCState(unsigned CC, bool isVarArg, const TargetMachine &TM,
           SmallVector<CCValAssign, 16> &locs);
   
   void addLoc(const CCValAssign &V) {
@@ -121,6 +122,7 @@ public:
   
   const TargetMachine &getTarget() const { return TM; }
   unsigned getCallingConv() const { return CallingConv; }
+  bool isVarArg() const { return IsVarArg; }
   
   unsigned getNextStackOffset() const { return StackOffset; }