summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-09-16 23:38:13 +0000
committerEric Christopher <echristo@gmail.com>2015-09-16 23:38:13 +0000
commita4e5d3cf8ecba1d2fa03ec590424a4a5e535e5d1 (patch)
tree363c80342cc75734ea02bbc030a7377d0ca39937 /llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
parent88be1ac06224e2a33569534f2eebcfb891016b9e (diff)
downloadbcm5719-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/AArch64/AArch64TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index db6e244337a..c52c5544fc7 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -203,7 +203,7 @@ public:
} // namespace
TargetIRAnalysis AArch64TargetMachine::getTargetIRAnalysis() {
- return TargetIRAnalysis([this](Function &F) {
+ return TargetIRAnalysis([this](const Function &F) {
return TargetTransformInfo(AArch64TTIImpl(this, F));
});
}
OpenPOWER on IntegriCloud