namespace {
class LocalStackSlotPass: public MachineFunctionPass {
- int64_t LocalStackSize;
-
void calculateFrameObjectOffsets(MachineFunction &Fn);
public:
static char ID; // Pass identification, replacement for typeid
bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) {
calculateFrameObjectOffsets(MF);
- DEBUG(dbgs() << LocalStackSize << " bytes of local storage pre-allocated\n");
return true;
}
}
// Remember how big this blob of stack space is
- LocalStackSize = Offset;
+ MFI->setLocalFrameSize(Offset);
}