summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-04-17 20:57:40 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-04-17 20:57:40 +0000
commitdcb52b167ae374b23d3f0e37cac6249257927c9d (patch)
tree23753db984b666f01b98050a212936bf2cebfc55 /clang/lib/AST/DeclBase.cpp
parentb0cec31db2905aa8e1dcd80b70616b3d5c3e16e7 (diff)
downloadbcm5719-llvm-dcb52b167ae374b23d3f0e37cac6249257927c9d.tar.gz
bcm5719-llvm-dcb52b167ae374b23d3f0e37cac6249257927c9d.zip
Revert "Address http://bugs.llvm.org/pr30994 so that a non-friend can properly replace a friend, and a visible friend can properly replace an invisible friend but not vice verse, and definitions are not replaced. This fixes the two FIXME in SemaTemplate/friend-template.cpp."
This reverts commit r300443. Breaks compiling libc++ with modules in some configurations. llvm-svn: 300497
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index ae7444579b0..cda70c5edcd 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -861,21 +861,6 @@ const FunctionType *Decl::getFunctionType(bool BlocksToo) const {
return Ty->getAs<FunctionType>();
}
-bool Decl::isThisDeclarationADefinition() const {
- if (auto *TD = dyn_cast<TagDecl>(this))
- return TD->isThisDeclarationADefinition();
- if (auto *FD = dyn_cast<FunctionDecl>(this))
- return FD->isThisDeclarationADefinition();
- if (auto *VD = dyn_cast<VarDecl>(this))
- return VD->isThisDeclarationADefinition();
- if (auto *CTD = dyn_cast<ClassTemplateDecl>(this))
- return CTD->isThisDeclarationADefinition();
- if (auto *FTD = dyn_cast<FunctionTemplateDecl>(this))
- return FTD->isThisDeclarationADefinition();
- if (auto *VTD = dyn_cast<VarTemplateDecl>(this))
- return VTD->isThisDeclarationADefinition();
- return false;
-}
/// Starting at a given context (a Decl or DeclContext), look for a
/// code context that is not a closure (a lambda, block, etc.).
OpenPOWER on IntegriCloud