summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-24 19:00:30 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-24 19:00:30 +0000
commite66edc18ae0fc17169fa61d3c6fab9d48b1eb751 (patch)
treef3f4529d2fda3aa455db1f495ebaa7a228f7b782 /clang/lib/Sema/SemaLookup.cpp
parent95c66b9ddc235eecc773abf8d8845e66bb4066d8 (diff)
downloadbcm5719-llvm-e66edc18ae0fc17169fa61d3c6fab9d48b1eb751.tar.gz
bcm5719-llvm-e66edc18ae0fc17169fa61d3c6fab9d48b1eb751.zip
Rip out TemplateIdRefExpr and make UnresolvedLookupExpr and
DependentScopeDeclRefExpr support storing templateids. Unite the common code paths between ActOnDeclarationNameExpr and ActOnTemplateIdExpr. This gets us to a point where we don't need to store function templates in the AST using TemplateNames, which is critical to ripping out OverloadedFunction. Also resolves a few FIXMEs. llvm-svn: 89785
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 08e9dc3c631..8f0982740d4 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -1544,11 +1544,7 @@ Sema::FindAssociatedClassesAndNamespaces(Expr **Args, unsigned NumArgs,
if (UnresolvedLookupExpr *ULE = dyn_cast<UnresolvedLookupExpr>(Arg))
Functions.append(ULE->decls_begin(), ULE->decls_end());
- else if (TemplateIdRefExpr *TIRE = dyn_cast<TemplateIdRefExpr>(Arg)) {
- TemplateName TName = TIRE->getTemplateName();
- OverloadedFunctionDecl *Ovl = TName.getAsOverloadedFunctionDecl();
- Functions.append(Ovl->function_begin(), Ovl->function_end());
- } else
+ else
continue;
for (llvm::SmallVectorImpl<NamedDecl*>::iterator I = Functions.begin(),
OpenPOWER on IntegriCloud