/// 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;
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) {
const TargetMachine &getTarget() const { return TM; }
unsigned getCallingConv() const { return CallingConv; }
+ bool isVarArg() const { return IsVarArg; }
unsigned getNextStackOffset() const { return StackOffset; }