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/SemaCodeComplete.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/SemaCodeComplete.cpp')
-rw-r--r-- | clang/lib/Sema/SemaCodeComplete.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp index 20c69a467e9..e1a5790a8b7 100644 --- a/clang/lib/Sema/SemaCodeComplete.cpp +++ b/clang/lib/Sema/SemaCodeComplete.cpp @@ -206,17 +206,6 @@ void ResultBuilder::MaybeAddResult(Result R, DeclContext *CurContext) { MaybeAddResult(Result(Using->getTargetDecl(), R.Rank, R.Qualifier), CurContext); - // Handle each declaration in an overload set separately. - if (OverloadedFunctionDecl *Ovl - = dyn_cast<OverloadedFunctionDecl>(R.Declaration)) { - for (OverloadedFunctionDecl::function_iterator F = Ovl->function_begin(), - FEnd = Ovl->function_end(); - F != FEnd; ++F) - MaybeAddResult(Result(*F, R.Rank, R.Qualifier), CurContext); - - return; - } - Decl *CanonDecl = R.Declaration->getCanonicalDecl(); unsigned IDNS = CanonDecl->getIdentifierNamespace(); |