diff options
author | John McCall <rjmccall@apple.com> | 2013-03-09 00:54:27 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-03-09 00:54:27 +0000 |
commit | 83972f128e9218c051692bf96361327a701aeb79 (patch) | |
tree | e1129b0ffc979ac9bcd90848b3a7381dac57bda0 /lib/AST/Decl.cpp | |
parent | b421b56d5a83c5bcae576b714ebd9df7b745368d (diff) |
Add TagDecl::hasNameForLinkage(), which is true if the tag
is non-anonymous or is defined in a typedef of itself.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 257e59c237..c2168a2102 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -675,7 +675,7 @@ static LinkageInfo getLVForNamespaceScopeDecl(const NamedDecl *D, // has the typedef name for linkage purposes (7.1.3); or } else if (const TagDecl *Tag = dyn_cast<TagDecl>(D)) { // Unnamed tags have no linkage. - if (!Tag->getDeclName() && !Tag->getTypedefNameForAnonDecl()) + if (!Tag->hasNameForLinkage()) return LinkageInfo::none(); // If this is a class template specialization, consider the |