mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +00:00
Try to fix WebAssembly build after r247864
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6b5fe6ee7
commit
33dfebdcfa
@ -107,7 +107,7 @@ public:
|
||||
} // end anonymous namespace
|
||||
|
||||
TargetIRAnalysis WebAssemblyTargetMachine::getTargetIRAnalysis() {
|
||||
return TargetIRAnalysis([this](Function &F) {
|
||||
return TargetIRAnalysis([this](const Function &F) {
|
||||
return TargetTransformInfo(WebAssemblyTTIImpl(this, F));
|
||||
});
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ class WebAssemblyTTIImpl final : public BasicTTIImplBase<WebAssemblyTTIImpl> {
|
||||
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()) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user