llvm.org GIT mirror llvm / f952135
add isvararg tracking to CCState git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37639 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
104104 /// stack slots are used. It provides accessors to allocate these values.
105105 class CCState {
106106 unsigned CallingConv;
107 bool IsVarArg;
107108 const TargetMachine &TM;
108109 const MRegisterInfo &MRI;
109110 SmallVector &Locs;
111112 unsigned StackOffset;
112113 SmallVector UsedRegs;
113114 public:
114 CCState(unsigned CC, const TargetMachine &TM,
115 CCState(unsigned CC, bool isVarArg, const TargetMachine &TM,
115116 SmallVector &locs);
116117
117118 void addLoc(const CCValAssign &V) {
120121
121122 const TargetMachine &getTarget() const { return TM; }
122123 unsigned getCallingConv() const { return CallingConv; }
124 bool isVarArg() const { return IsVarArg; }
123125
124126 unsigned getNextStackOffset() const { return StackOffset; }
125127