constify the TargetMachine being passed through the Mips subtarget
[oota-llvm.git] / lib / Target / Mips / MipsSubtarget.cpp
index 11fa4f5ed4aff577105b809f46a9d57e8fa63534..e684cc9d6cececaaae3bae53a0331a4956eae34e 100644 (file)
@@ -104,7 +104,7 @@ static std::string computeDataLayout(const MipsSubtarget &ST) {
 
 MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &CPU,
                              const std::string &FS, bool little,
-                             MipsTargetMachine *_TM)
+                             const MipsTargetMachine *_TM)
     : MipsGenSubtargetInfo(TT, CPU, FS), MipsArchVersion(Mips32),
       MipsABI(UnknownABI), IsLittle(little), IsSingleFloat(false),
       IsFPXX(false), NoABICalls(false), IsFP64bit(false), UseOddSPReg(true),