diff options
| author | John McCall <rjmccall@apple.com> | 2010-01-20 00:46:10 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2010-01-20 00:46:10 +0000 |
| commit | ad371258aaafe17b1d1459458cb70cd1332cd064 (patch) | |
| tree | d0b85bcf8f7e753adb3a0df4c6ca6f37ccb735b4 /clang/lib/AST/ASTContext.cpp | |
| parent | e43fe7cbb76284bf5ae2f295b0762935bffee404 (diff) | |
| download | bcm5719-llvm-ad371258aaafe17b1d1459458cb70cd1332cd064.tar.gz bcm5719-llvm-ad371258aaafe17b1d1459458cb70cd1332cd064.zip | |
Give UnresolvedSet the ability to store access specifiers for each declaration.
Change LookupResult to use UnresolvedSet. Also extract UnresolvedSet into its
own header and make it templated over an inline capacity.
llvm-svn: 93959
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index c6e3e09fa5a..f8fc626457a 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -3759,8 +3759,8 @@ void ASTContext::setObjCConstantStringInterface(ObjCInterfaceDecl *Decl) { /// \brief Retrieve the template name that corresponds to a non-empty /// lookup. -TemplateName ASTContext::getOverloadedTemplateName(NamedDecl * const *Begin, - NamedDecl * const *End) { +TemplateName ASTContext::getOverloadedTemplateName(UnresolvedSetIterator Begin, + UnresolvedSetIterator End) { unsigned size = End - Begin; assert(size > 1 && "set is not overloaded!"); @@ -3769,7 +3769,7 @@ TemplateName ASTContext::getOverloadedTemplateName(NamedDecl * const *Begin, OverloadedTemplateStorage *OT = new(memory) OverloadedTemplateStorage(size); NamedDecl **Storage = OT->getStorage(); - for (NamedDecl * const *I = Begin; I != End; ++I) { + for (UnresolvedSetIterator I = Begin; I != End; ++I) { NamedDecl *D = *I; assert(isa<FunctionTemplateDecl>(D) || (isa<UsingShadowDecl>(D) && |

