aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit395c0ad3e5726a6fd67f6e82053fe630aae14f88 (patch)
tree9c7492d8e2ce1fc2d99126554e4d5f82c11744ff /lib/CodeGen/LocalStackSlotAllocation.cpp
parent0a059fbaedcaa79ef53c6d657682b705a2ed9634 (diff)
downloadexternal_llvm-395c0ad3e5726a6fd67f6e82053fe630aae14f88.tar.gz
external_llvm-395c0ad3e5726a6fd67f6e82053fe630aae14f88.tar.bz2
external_llvm-395c0ad3e5726a6fd67f6e82053fe630aae14f88.zip
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
Diffstat (limited to 'lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r--lib/CodeGen/LocalStackSlotAllocation.cpp5
1 files changed, 1 insertions, 4 deletions
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);
}