1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Capture more information in ctor

llvm-svn: 5190
This commit is contained in:
Chris Lattner 2002-12-28 20:34:18 +00:00
parent 105b7d86fb
commit c004869af1

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