summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/TargetTransformInfo.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-02-28 17:17:00 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-02-28 17:17:00 +0000
commitdf0cd72657c898b1ed2b67c55b41459bc3ab5ab0 (patch)
tree904f54807d055bc184ec96da62485d2bb152c9d8 /llvm/lib/Analysis/TargetTransformInfo.cpp
parentc9aaa3171d522d6048898620ff97b01b0c9a519e (diff)
downloadbcm5719-llvm-df0cd72657c898b1ed2b67c55b41459bc3ab5ab0.tar.gz
bcm5719-llvm-df0cd72657c898b1ed2b67c55b41459bc3ab5ab0.zip
[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. llvm-svn: 262188
Diffstat (limited to 'llvm/lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r--llvm/lib/Analysis/TargetTransformInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index a9e18e01caa..7380c44f0dd 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/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());
}
OpenPOWER on IntegriCloud