summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-08-16 18:06:15 +0000
committerJim Grosbach <grosbach@apple.com>2010-08-16 18:06:15 +0000
commit8be0196afeed5dd738fce4c7df950f205e462c13 (patch)
treee69e2018866c9507062a6543cdba4950b87978db /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parent055068df4a48e492ddcfd8ff7c47cd007ab15cb0 (diff)
downloadbcm5719-llvm-8be0196afeed5dd738fce4c7df950f205e462c13.tar.gz
bcm5719-llvm-8be0196afeed5dd738fce4c7df950f205e462c13.zip
track local frame size in MFI, not local to the pass, since PEI needs it.
llvm-svn: 111164
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r--llvm/lib/CodeGen/LocalStackSlotAllocation.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
index dabfb469c34..8cacc179fa0 100644
--- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud