switch to smallvector

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-26 07:59:53 +00:00
parent ab143beb93
commit 6e50f8cfe9

View File

@ -1059,17 +1059,15 @@ SDOperand X86TargetLowering::LowerCCCCallTo(SDOperand Op, SelectionDAG &DAG,
//===----------------------------------------------------------------------===//
class CallingConvState {
uint32_t UsedRegs[(X86::NUM_TARGET_REGS+31)/32];
unsigned StackOffset;
const MRegisterInfo &MRI;
SmallVector<uint32_t, 32> UsedRegs;
public:
CallingConvState(const MRegisterInfo &mri) : MRI(mri) {
// No stack is used.
StackOffset = 0;
UsedRegs.resize(MRI.getNumRegs());
// No registers are used.
memset(UsedRegs, 0, sizeof(UsedRegs));
}
unsigned getNextStackOffset() const { return StackOffset; }