Stop using CreateStackObject(RegClass*)
llvm-svn: 15775
This commit is contained in:
@@ -225,7 +225,8 @@ int RA::getStackSpaceFor(unsigned VirtReg, const TargetRegisterClass *RC) {
|
||||
return I->second; // Already has space allocated?
|
||||
|
||||
// Allocate a new stack object for this spill location...
|
||||
int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC);
|
||||
int FrameIdx = MF->getFrameInfo()->CreateStackObject(RC->getSize(),
|
||||
RC->getAlignment());
|
||||
|
||||
// Assign the slot...
|
||||
StackSlotForVirtReg.insert(I, std::make_pair(VirtReg, FrameIdx));
|
||||
|
||||
Reference in New Issue
Block a user