tidy up. remove unused local.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111206 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2010-08-16 23:26:09 +00:00
parent 1f8aa7bf08
commit fecdea0bf7
2 changed files with 2 additions and 2 deletions

View File

@ -94,8 +94,6 @@ AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset,
/// abstract stack objects.
///
void LocalStackSlotPass::calculateFrameObjectOffsets(MachineFunction &Fn) {
const TargetFrameInfo &TFI = *Fn.getTarget().getFrameInfo();
// Loop over all of the stack objects, assigning sequential addresses...
MachineFrameInfo *MFI = Fn.getFrameInfo();
int64_t Offset = 0;

View File

@ -570,6 +570,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) {
// will be used later when resolving frame base virtual register pseudos.
MFI->setLocalFrameBaseOffset(Offset);
DEBUG(dbgs() << "Local frame base offset: " << Offset << "\n");
// Allocate the local block
Offset += MFI->getLocalFrameSize();