From fecdea0bf77599038eb368db3bc6a38a14900308 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 16 Aug 2010 23:26:09 +0000 Subject: [PATCH] tidy up. remove unused local. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111206 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/LocalStackSlotAllocation.cpp | 2 -- lib/CodeGen/PrologEpilogInserter.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/LocalStackSlotAllocation.cpp b/lib/CodeGen/LocalStackSlotAllocation.cpp index 75498ed8e5a..8aabca0cd3f 100644 --- a/lib/CodeGen/LocalStackSlotAllocation.cpp +++ b/lib/CodeGen/LocalStackSlotAllocation.cpp @@ -94,8 +94,6 @@ AdjustStackOffset(MachineFrameInfo *MFI, int FrameIdx, int64_t &Offset, /// abstract stack objects. /// void LocalStackSlotPass::calculateFrameObjectOffsets(MachineFunction &Fn) { - const TargetFrameInfo &TFI = *Fn.getTarget().getFrameInfo(); - // Loop over all of the stack objects, assigning sequential addresses... MachineFrameInfo *MFI = Fn.getFrameInfo(); int64_t Offset = 0; diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 83aa0c44d78..7b674736366 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -570,6 +570,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &Fn) { // will be used later when resolving frame base virtual register pseudos. MFI->setLocalFrameBaseOffset(Offset); + DEBUG(dbgs() << "Local frame base offset: " << Offset << "\n"); + // Allocate the local block Offset += MFI->getLocalFrameSize();