summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2014-04-02 19:28:18 +0000
committerJim Grosbach <grosbach@apple.com>2014-04-02 19:28:18 +0000
commit36c4953348b7f763963f0b4af99d301cad744ddb (patch)
tree80a55f6fffb3f5c7fecbd5cb7c1837930dc08991 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parent4a1a9ce5e670df2f0450bd7a7c568b3f8b60fb86 (diff)
downloadbcm5719-llvm-36c4953348b7f763963f0b4af99d301cad744ddb.tar.gz
bcm5719-llvm-36c4953348b7f763963f0b4af99d301cad744ddb.zip
Simplify resolveFrameIndex() signature.
Just pass a MachineInstr reference rather than an MBB iterator. Creating a MachineInstr& is the first thing every implementation did anyway. llvm-svn: 205453
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
-rw-r--r--llvm/lib/CodeGen/LocalStackSlotAllocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
index ae69c134fdc..122d4676ea6 100644
--- a/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
+++ b/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
@@ -411,7 +411,7 @@ bool LocalStackSlotPass::insertFrameReferenceRegisters(MachineFunction &Fn) {
// Modify the instruction to use the new base register rather
// than the frame index operand.
- TRI->resolveFrameIndex(I, BaseReg, Offset);
+ TRI->resolveFrameIndex(*I, BaseReg, Offset);
DEBUG(dbgs() << "Resolved: " << *MI);
++NumReplacements;
OpenPOWER on IntegriCloud