constify the Function parameter to the TTI creation callback and
[oota-llvm.git] / lib / Target / XCore / XCoreTargetTransformInfo.h
index e23aef3e3b4a3ff643fb30d45b2cd070e4a4272b..b2cb889f1fc0953dc4b9a0c1bc8cea0d3df105a0 100644 (file)
@@ -37,7 +37,7 @@ class XCoreTTIImpl : public BasicTTIImplBase<XCoreTTIImpl> {
   const XCoreTargetLowering *getTLI() const { return TLI; }
 
 public:
-  explicit XCoreTTIImpl(const XCoreTargetMachine *TM, Function &F)
+  explicit XCoreTTIImpl(const XCoreTargetMachine *TM, const Function &F)
       : BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl()),
         TLI(ST->getTargetLowering()) {}