diff options
author | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-04-02 10:42:44 +0000 |
---|---|---|
committer | Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com> | 2015-04-02 10:42:44 +0000 |
commit | 91a9b151308bdf068abc57e6dad7262b794be856 (patch) | |
tree | 6932c12c257c56249305be1d6fbd4d4157b2eb28 /lib/Target/Mips/Mips16FrameLowering.cpp | |
parent | cb64898a22659c897575b091594fbb45da0f2964 (diff) | |
download | llvm-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.cpp | 5 |
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); |