/// blob.
int64_t getLocalFrameBaseOffset() const { return LocalFrameBaseOffset; }
+ /// setLocalFrameSize - Set the size of the local object blob.
+ void setLocalFrameSize(int64_t sz) { LocalFrameSize = sz; }
+
/// getLocalFrameSize - Get the size of the local object blob.
int64_t getLocalFrameSize() const { return LocalFrameSize; }
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);
}