diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-03-23 19:55:22 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-03-23 19:55:22 +0000 |
commit | fa1708fdea4553835add9dd87c13d803cde0e8ad (patch) | |
tree | 6c288d5272f7bf6e82072300d72294a60d1f2044 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5921b83f54135612c36c54e61edabbe26a55ffb7 (diff) | |
download | bcm5719-llvm-fa1708fdea4553835add9dd87c13d803cde0e8ad.tar.gz bcm5719-llvm-fa1708fdea4553835add9dd87c13d803cde0e8ad.zip |
revert 99311. Looks like it broke darwin bootstrap.
llvm-svn: 99317
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 69ce49cbb18..1606710bc5c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -310,17 +310,8 @@ GetLinkageForFunction(ASTContext &Context, const FunctionDecl *FD, // instantiated when used so that the body can be considered for // inlining, but that no out-of-line copy of the inline function would be // generated in the translation unit. -- end note ] - - // We check the specialization kind of the class for implicit methods. - // They have a TSK_Undeclared specialization kind. - TemplateSpecializationKind TSK; - const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD); - if (MD && MD->isImplicit()) - TSK = MD->getParent()->getTemplateSpecializationKind(); - else - TSK = FD->getTemplateSpecializationKind(); - - if (TSK == TSK_ExplicitInstantiationDeclaration) + if (FD->getTemplateSpecializationKind() + == TSK_ExplicitInstantiationDeclaration) return CodeGenModule::GVA_C99Inline; return CodeGenModule::GVA_CXXInline; |