diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-12-21 02:34:39 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-12-21 02:34:39 +0000 |
| commit | 747d1114d6fab9b807764b790e51482fa8326ea0 (patch) | |
| tree | 1fa6ba900d84c302b575e56041314a405659aad0 /llvm/lib/Target/WebAssembly | |
| parent | b6a429842ec31acddbc64937a8b7047c4eee025e (diff) | |
| download | bcm5719-llvm-747d1114d6fab9b807764b790e51482fa8326ea0.tar.gz bcm5719-llvm-747d1114d6fab9b807764b790e51482fa8326ea0.zip | |
Revert "Expose a TargetMachine::getTargetTransformInfo function"
This reverts commit r321234. It breaks the -DBUILD_SHARED_LIBS=ON build.
llvm-svn: 321243
Diffstat (limited to 'llvm/lib/Target/WebAssembly')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp index d38cde74d2e..3cc19ef5fba 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp @@ -146,9 +146,10 @@ public: }; } // end anonymous namespace -TargetTransformInfo -WebAssemblyTargetMachine::getTargetTransformInfo(const Function &F) { - return TargetTransformInfo(WebAssemblyTTIImpl(this, F)); +TargetIRAnalysis WebAssemblyTargetMachine::getTargetIRAnalysis() { + return TargetIRAnalysis([this](const Function &F) { + return TargetTransformInfo(WebAssemblyTTIImpl(this, F)); + }); } TargetPassConfig * diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h index dd826befd11..22484952651 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.h @@ -43,7 +43,8 @@ public: return TLOF.get(); } - TargetTransformInfo getTargetTransformInfo(const Function &F) override; + /// \brief Get the TargetIRAnalysis for this target. + TargetIRAnalysis getTargetIRAnalysis() override; bool usesPhysRegsForPEI() const override { return false; } }; |

