From 63249347c2700fe2481e0bc36caa63f6e2cf6eab Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 16 Aug 2010 18:06:15 +0000 Subject: track local frame size in MFI, not local to the pass, since PEI needs it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111164 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LocalStackSlotAllocation.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/CodeGen/LocalStackSlotAllocation.cpp') diff --git a/lib/CodeGen/LocalStackSlotAllocation.cpp b/lib/CodeGen/LocalStackSlotAllocation.cpp index dabfb469c3..8cacc179fa 100644 --- a/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -40,8 +40,6 @@ STATISTIC(NumAllocations, "Number of frame indices processed"); namespace { class LocalStackSlotPass: public MachineFunctionPass { - int64_t LocalStackSize; - void calculateFrameObjectOffsets(MachineFunction &Fn); public: static char ID; // Pass identification, replacement for typeid @@ -68,7 +66,6 @@ FunctionPass *llvm::createLocalStackSlotAllocationPass() { bool LocalStackSlotPass::runOnMachineFunction(MachineFunction &MF) { calculateFrameObjectOffsets(MF); - DEBUG(dbgs() << LocalStackSize << " bytes of local storage pre-allocated\n"); return true; } @@ -165,5 +162,5 @@ void LocalStackSlotPass::calculateFrameObjectOffsets(MachineFunction &Fn) { } // Remember how big this blob of stack space is - LocalStackSize = Offset; + MFI->setLocalFrameSize(Offset); } -- cgit v1.2.3-18-g5258