aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2022-02-25 14:24:42 -0500
committerJameson Nash <vtjnash@gmail.com>2022-02-25 14:30:44 -0500
commitc4b1a63a1b0338d5b3a66e2c039a67107b1a2416 (patch)
tree8ad24cef0061cf40e0641100d6ed588494b24841 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent875bbce9f7206b97a74e656dd31df7b1c7dd897d (diff)
downloadllvm-c4b1a63a1b0338d5b3a66e2c039a67107b1a2416.zip
llvm-c4b1a63a1b0338d5b3a66e2c039a67107b1a2416.tar.gz
llvm-c4b1a63a1b0338d5b3a66e2c039a67107b1a2416.tar.bz2
mark getTargetTransformInfo and getTargetIRAnalysis as const
Seems like this can be const, since Passes shouldn't modify it. Reviewed By: wsmoses Differential Revision: https://reviews.llvm.org/D120518
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 950df71..85014b6 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -336,7 +336,7 @@ public:
} // end anonymous namespace
TargetTransformInfo
-WebAssemblyTargetMachine::getTargetTransformInfo(const Function &F) {
+WebAssemblyTargetMachine::getTargetTransformInfo(const Function &F) const {
return TargetTransformInfo(WebAssemblyTTIImpl(this, F));
}