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/ARM | |
| 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/ARM')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetMachine.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetMachine.h | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp index 0f6d1eddc98..54f6b62ed09 100644 --- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp +++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp @@ -283,9 +283,10 @@ ARMBaseTargetMachine::getSubtargetImpl(const Function &F) const { return I.get(); } -TargetTransformInfo -ARMBaseTargetMachine::getTargetTransformInfo(const Function &F) { - return TargetTransformInfo(ARMTTIImpl(this, F)); +TargetIRAnalysis ARMBaseTargetMachine::getTargetIRAnalysis() { + return TargetIRAnalysis([this](const Function &F) { + return TargetTransformInfo(ARMTTIImpl(this, F)); + }); } ARMLETargetMachine::ARMLETargetMachine(const Target &T, const Triple &TT, diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.h b/llvm/lib/Target/ARM/ARMTargetMachine.h index 2072bb731f0..655ec3202bf 100644 --- a/llvm/lib/Target/ARM/ARMTargetMachine.h +++ b/llvm/lib/Target/ARM/ARMTargetMachine.h @@ -53,7 +53,8 @@ public: const ARMSubtarget *getSubtargetImpl() const = delete; bool isLittleEndian() const { return isLittle; } - TargetTransformInfo getTargetTransformInfo(const Function &F) override; + /// \brief Get the TargetIRAnalysis for this target. + TargetIRAnalysis getTargetIRAnalysis() override; // Pass Pipeline Configuration TargetPassConfig *createPassConfig(PassManagerBase &PM) override; |

