-static const MipsInstrInfo *genInstrInfo(MipsTargetMachine &TM) {
- const MipsInstrInfo *II;
-
- if (TM.getSubtargetImpl()->inMips16Mode())
- II = new Mips16InstrInfo(TM);
- else
- II = new MipsSEInstrInfo(TM);
-
- return II;
-}
-
-static const MipsFrameLowering *genFrameLowering(MipsTargetMachine &TM,
- const MipsSubtarget &ST) {
- const MipsFrameLowering *FL;
-
- if (TM.getSubtargetImpl()->inMips16Mode())
- FL = new Mips16FrameLowering(ST);
- else
- FL = new MipsSEFrameLowering(ST);
-
- return FL;
-}
-