diff options
author | John McCall <rjmccall@apple.com> | 2009-11-30 22:55:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-30 22:55:35 +0000 |
commit | 132f3133ae348126993979867cf58de673016d4a (patch) | |
tree | 8e8990627f016aa86dd9f0ab7e835d688af1e32b /clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | |
parent | 10eae1851d3f6cfa9ab665fc2bd54a3ff57293d8 (diff) | |
download | bcm5719-llvm-132f3133ae348126993979867cf58de673016d4a.tar.gz bcm5719-llvm-132f3133ae348126993979867cf58de673016d4a.zip |
Remove all of Sema's explicit uses of OverloadedFunctionDecl except for
those associated with TemplateNames.
llvm-svn: 90162
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiateDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiateDecl.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp index ba75ee90b0f..a1258572ccb 100644 --- a/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp @@ -1883,22 +1883,6 @@ DeclContext *Sema::FindInstantiatedContext(DeclContext* DC, /// this mapping from within the instantiation of X<int>. NamedDecl *Sema::FindInstantiatedDecl(NamedDecl *D, const MultiLevelTemplateArgumentList &TemplateArgs) { - if (OverloadedFunctionDecl *Ovl = dyn_cast<OverloadedFunctionDecl>(D)) { - // Transform all of the elements of the overloaded function set. - OverloadedFunctionDecl *Result - = OverloadedFunctionDecl::Create(Context, CurContext, Ovl->getDeclName()); - - for (OverloadedFunctionDecl::function_iterator F = Ovl->function_begin(), - FEnd = Ovl->function_end(); - F != FEnd; ++F) { - Result->addOverload( - AnyFunctionDecl::getFromNamedDecl(FindInstantiatedDecl(*F, - TemplateArgs))); - } - - return Result; - } - DeclContext *ParentDC = D->getDeclContext(); if (isa<ParmVarDecl>(D) || isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || |