summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/Mips16FrameLowering.cpp
diff options
context:
space:
mode:
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-04-02 10:42:44 +0000
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-04-02 10:42:44 +0000
commit91a9b151308bdf068abc57e6dad7262b794be856 (patch)
tree6932c12c257c56249305be1d6fbd4d4157b2eb28 /lib/Target/Mips/Mips16FrameLowering.cpp
parentcb64898a22659c897575b091594fbb45da0f2964 (diff)
downloadllvm-91a9b151308bdf068abc57e6dad7262b794be856.tar.gz
[mips] Expose adjustStackPtr() from MipsInstrInfo. NFC.
Summary: adjustStackPtr() is implemented from both MipsSEInstrInfo and Mips16InstrInfo. It makes sense to expose this function from MipsInstrInfo and avoid explicit casting in some cases. Depends on D8638. Reviewers: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8640 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips16FrameLowering.cpp')
-rw-r--r--lib/Target/Mips/Mips16FrameLowering.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/Mips/Mips16FrameLowering.cpp b/lib/Target/Mips/Mips16FrameLowering.cpp
index abecfa0bac2d..6e35de70b96e 100644
--- a/lib/Target/Mips/Mips16FrameLowering.cpp
+++ b/lib/Target/Mips/Mips16FrameLowering.cpp
@@ -153,10 +153,7 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
if (I->getOpcode() == Mips::ADJCALLSTACKDOWN)
Amount = -Amount;
- const Mips16InstrInfo &TII =
- *static_cast<const Mips16InstrInfo *>(STI.getInstrInfo());
-
- TII.adjustStackPtr(Mips::SP, Amount, MBB, I);
+ STI.getInstrInfo()->adjustStackPtr(Mips::SP, Amount, MBB, I);
}
MBB.erase(I);