diff options
author | Eric Christopher <echristo@gmail.com> | 2015-09-16 23:38:13 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-09-16 23:38:13 +0000 |
commit | a4e5d3cf8ecba1d2fa03ec590424a4a5e535e5d1 (patch) | |
tree | 363c80342cc75734ea02bbc030a7377d0ca39937 /llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h | |
parent | 88be1ac06224e2a33569534f2eebcfb891016b9e (diff) | |
download | bcm5719-llvm-a4e5d3cf8ecba1d2fa03ec590424a4a5e535e5d1.tar.gz bcm5719-llvm-a4e5d3cf8ecba1d2fa03ec590424a4a5e535e5d1.zip |
constify the Function parameter to the TTI creation callback and
propagate to all callers/users/etc.
llvm-svn: 247864
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h index c74c73b10f4..9ae736d8413 100644 --- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h +++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h @@ -28,7 +28,7 @@ class SystemZTTIImpl : public BasicTTIImplBase<SystemZTTIImpl> { const SystemZTargetLowering *getTLI() const { return TLI; } public: - explicit SystemZTTIImpl(const SystemZTargetMachine *TM, Function &F) + explicit SystemZTTIImpl(const SystemZTargetMachine *TM, const Function &F) : BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl(F)), TLI(ST->getTargetLowering()) {} |