constify the TargetMachine argument used in the subtarget and
[oota-llvm.git] / lib / Target / PowerPC / PPCSubtarget.cpp
index d59d62a403f86e7b497871b78cf7e5a97626acc5..da4a57015c67c9d01871ca803d06122f6dfc20d2 100644 (file)
@@ -74,7 +74,7 @@ PPCSubtarget &PPCSubtarget::initializeSubtargetDependencies(StringRef CPU,
 }
 
 PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &CPU,
-                           const std::string &FS, PPCTargetMachine &TM)
+                           const std::string &FS, const PPCTargetMachine &TM)
     : PPCGenSubtargetInfo(TT, CPU, FS), TargetTriple(TT),
       DL(getDataLayoutString(TargetTriple)),
       IsPPC64(TargetTriple.getArch() == Triple::ppc64 ||