diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-09-16 23:59:57 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-09-16 23:59:57 +0000 |
commit | 9099b5e644eb3e0e1acf4cbe9dee638016a699e1 (patch) | |
tree | d9d8b39d9ba07e514108d402b1c7deca791e2e16 /llvm/lib/Target/WebAssembly | |
parent | 63dd8766abe6136ce346c7b27b22485d590bc4ea (diff) | |
download | bcm5719-llvm-9099b5e644eb3e0e1acf4cbe9dee638016a699e1.tar.gz bcm5719-llvm-9099b5e644eb3e0e1acf4cbe9dee638016a699e1.zip |
Try to fix WebAssembly build after r247864
llvm-svn: 247870
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp index 95cf00819f4..18e2e5057db 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp @@ -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)); }); } diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h index f2158ca0dfc..84f9f0e3e55 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h @@ -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()) {} |