diff options
author | Eric Christopher <echristo@gmail.com> | 2014-07-02 23:29:55 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-07-02 23:29:55 +0000 |
commit | 4cdb3f9b6a1929e03a55d39d29f3bd495597f3b8 (patch) | |
tree | b376819cea89485fdc43201299de88f51d370fcf /llvm/lib/Target/Mips/Mips16FrameLowering.cpp | |
parent | 25a614bccc0f4833a0010a315cdbe6fa9c51843e (diff) | |
download | llvm-4cdb3f9b6a1929e03a55d39d29f3bd495597f3b8.zip llvm-4cdb3f9b6a1929e03a55d39d29f3bd495597f3b8.tar.gz llvm-4cdb3f9b6a1929e03a55d39d29f3bd495597f3b8.tar.bz2 |
So that we can include frame lowering in the subtarget, remove include
circular dependency with the subtarget by inlining accessor methods and
outlining a routine.
llvm-svn: 212236
Diffstat (limited to 'llvm/lib/Target/Mips/Mips16FrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/Mips16FrameLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/Mips16FrameLowering.cpp b/llvm/lib/Target/Mips/Mips16FrameLowering.cpp index c01d03a..93706c2 100644 --- a/llvm/lib/Target/Mips/Mips16FrameLowering.cpp +++ b/llvm/lib/Target/Mips/Mips16FrameLowering.cpp @@ -16,6 +16,7 @@ #include "Mips16InstrInfo.h" #include "MipsInstrInfo.h" #include "MipsRegisterInfo.h" +#include "MipsSubtarget.h" #include "llvm/CodeGen/MachineFrameInfo.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineInstrBuilder.h" @@ -28,6 +29,9 @@ using namespace llvm; +Mips16FrameLowering::Mips16FrameLowering(const MipsSubtarget &STI) + : MipsFrameLowering(STI, STI.stackAlignment()) {} + void Mips16FrameLowering::emitPrologue(MachineFunction &MF) const { MachineBasicBlock &MBB = MF.front(); MachineFrameInfo *MFI = MF.getFrameInfo(); |