tidy up. remove unused local.
authorJim Grosbach <grosbach@apple.com>
Mon, 16 Aug 2010 23:26:09 +0000 (23:26 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 16 Aug 2010 23:26:09 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111206 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LocalStackSlotAllocation.cpp
lib/CodeGen/PrologEpilogInserter.cpp

index 75498ed8e5ac32624f03fc00f293449248f6bd9f..8aabca0cd3f1fd9cf56e040a6015f2c5895b21de 100644 (file)
@@ -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;
index 83aa0c44d781cd620201bd7d845266e750d4a7c6..7b6747363663249a39644c410f3e33468ea05533 100644 (file)
@@ -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();