aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Mips/MipsSubtarget.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-07-18 23:25:00 +0000
committerEric Christopher <echristo@gmail.com>2014-07-18 23:25:00 +0000
commit675cb4dab896350309b1350fbd9dbb661d2451ee (patch)
tree0191af8f2b0f0379c1cbe057a9fba031d2e2fd0d /llvm/lib/Target/Mips/MipsSubtarget.cpp
parentf3e0265ea03ebcecb3828bb4c8ce5e6016777aec (diff)
downloadllvm-675cb4dab896350309b1350fbd9dbb661d2451ee.zip
llvm-675cb4dab896350309b1350fbd9dbb661d2451ee.tar.gz
llvm-675cb4dab896350309b1350fbd9dbb661d2451ee.tar.bz2
Make InstrInfo depend only upon the Subtarget getting passed in
rather than the TargetMachine. llvm-svn: 213425
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSubtarget.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsSubtarget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsSubtarget.cpp b/llvm/lib/Target/Mips/MipsSubtarget.cpp
index a03b5ca..71332eb 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.cpp
+++ b/llvm/lib/Target/Mips/MipsSubtarget.cpp
@@ -115,7 +115,7 @@ MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &CPU,
HasDSPR2(false), AllowMixed16_32(Mixed16_32 | Mips_Os16), Os16(Mips_Os16),
HasMSA(false), OverrideMode(NoOverride), TM(_TM), TargetTriple(TT),
DL(computeDataLayout(initializeSubtargetDependencies(CPU, FS, TM))),
- TSInfo(DL), JITInfo(), InstrInfo(MipsInstrInfo::create(*TM)),
+ TSInfo(DL), JITInfo(), InstrInfo(MipsInstrInfo::create(*this)),
FrameLowering(MipsFrameLowering::create(*TM, *this)),
TLInfo(MipsTargetLowering::create(*TM)) {
@@ -254,7 +254,7 @@ void MipsSubtarget::setHelperClassesMips16() {
FrameLoweringSE.swap(FrameLowering);
TLInfoSE.swap(TLInfo);
if (!InstrInfo16) {
- InstrInfo.reset(MipsInstrInfo::create(*TM));
+ InstrInfo.reset(MipsInstrInfo::create(*this));
FrameLowering.reset(MipsFrameLowering::create(*TM, *this));
TLInfo.reset(MipsTargetLowering::create(*TM));
} else {
@@ -272,7 +272,7 @@ void MipsSubtarget::setHelperClassesMipsSE() {
FrameLowering16.swap(FrameLowering);
TLInfo16.swap(TLInfo);
if (!InstrInfoSE) {
- InstrInfo.reset(MipsInstrInfo::create(*TM));
+ InstrInfo.reset(MipsInstrInfo::create(*this));
FrameLowering.reset(MipsFrameLowering::create(*TM, *this));
TLInfo.reset(MipsTargetLowering::create(*TM));
} else {