diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-28 17:17:00 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-02-28 17:17:00 +0000 |
commit | d9b6afb249fd0e71f882f3f5d95fec1d84a12767 (patch) | |
tree | 77973a7f7f040d633e99fda1c3832c8b02901e49 /lib/Analysis/TargetTransformInfo.cpp | |
parent | fe64ace93524c697c55601be93da3b71fef5118d (diff) |
[PM] Appease mingw32's auto-import DLL build with minimal tweaks, with fix for clang.
char AnalysisBase::ID should be declared as extern and defined in one module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@262188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r-- | lib/Analysis/TargetTransformInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index a9e18e01caa..7380c44f0dd 100644 --- a/lib/Analysis/TargetTransformInfo.cpp +++ b/lib/Analysis/TargetTransformInfo.cpp @@ -377,6 +377,8 @@ TargetIRAnalysis::Result TargetIRAnalysis::run(const Function &F) { return TTICallback(F); } +template class llvm::AnalysisBase<TargetIRAnalysis>; + TargetIRAnalysis::Result TargetIRAnalysis::getDefaultTTI(const Function &F) { return Result(F.getParent()->getDataLayout()); } |