git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111206
91177308-0d34-0410-b5e6-
96231b3b80d8
/// 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;
// 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();