git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247870
91177308-0d34-0410-b5e6-
96231b3b80d8
} // end anonymous namespace
TargetIRAnalysis WebAssemblyTargetMachine::getTargetIRAnalysis() {
- return TargetIRAnalysis([this](Function &F) {
+ return TargetIRAnalysis([this](const Function &F) {
return TargetTransformInfo(WebAssemblyTTIImpl(this, F));
});
}
const WebAssemblyTargetLowering *getTLI() const { return TLI; }
public:
- WebAssemblyTTIImpl(const WebAssemblyTargetMachine *TM, Function &F)
+ WebAssemblyTTIImpl(const WebAssemblyTargetMachine *TM, const Function &F)
: BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl(F)),
TLI(ST->getTargetLowering()) {}