1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

switch to smallvector

llvm-svn: 34633
This commit is contained in:
Chris Lattner 2007-02-26 07:59:53 +00:00
parent 4b7b0a145a
commit 7165ee9b6b

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; }