summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-08-16 23:26:09 +0000
committerJim Grosbach <grosbach@apple.com>2010-08-16 23:26:09 +0000
commitfecdea0bf77599038eb368db3bc6a38a14900308 (patch)
tree535e18d1e816d4514c98e2812226a7f0b80e566d
parent1f8aa7bf08783a438ee2afd3747477923d87b365 (diff)
downloadllvm-fecdea0bf77599038eb368db3bc6a38a14900308.tar.gz
llvm-fecdea0bf77599038eb368db3bc6a38a14900308.tar.bz2
llvm-fecdea0bf77599038eb368db3bc6a38a14900308.tar.xz
tidy up. remove unused local.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111206 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/LocalStackSlotAllocation.cpp2
-rw-r--r--lib/CodeGen/PrologEpilogInserter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LocalStackSlotAllocation.cpp b/lib/CodeGen/LocalStackSlotAllocation.cpp
index 75498ed8e5..8aabca0cd3 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 83aa0c44d7..7b67473636 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();