Capture more information in ctor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-28 20:34:18 +00:00
parent fde4b51baa
commit 3ad7642901

View File

@ -7,7 +7,8 @@
#include "llvm/Target/MRegisterInfo.h"
MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
regclass_iterator RCB, regclass_iterator RCE)
regclass_iterator RCB, regclass_iterator RCE,
int CFSO, int CFDO)
: Desc(D), NumRegs(NR), RegClassBegin(RCB), RegClassEnd(RCE) {
assert(NumRegs < FirstVirtualRegister &&
"Target has too many physical registers!");
@ -24,6 +25,9 @@ MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
"Register in more than one class?");
PhysRegClasses[(*I)->getRegister(i)] = *I;
}
CallFrameSetupOpcode = CFSO;
CallFrameDestroyOpcode = CFDO;
}