diff options
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.h')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsTargetMachine.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.h b/llvm/lib/Target/Mips/MipsTargetMachine.h index 58400cd1b48..5ddbbcccfbb 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.h +++ b/llvm/lib/Target/Mips/MipsTargetMachine.h @@ -25,11 +25,14 @@ class formatted_raw_ostream; class MipsRegisterInfo; class MipsTargetMachine : public LLVMTargetMachine { + bool isLittle; MipsSubtarget *Subtarget; MipsSubtarget DefaultSubtarget; MipsSubtarget NoMips16Subtarget; MipsSubtarget Mips16Subtarget; + mutable StringMap<std::unique_ptr<MipsSubtarget>> SubtargetMap; + public: MipsTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, @@ -45,6 +48,8 @@ public: return &DefaultSubtarget; } + const MipsSubtarget *getSubtargetImpl(const Function &F) const override; + /// \brief Reset the subtarget for the Mips target. void resetSubtarget(MachineFunction *MF); |

