summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaLookup.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-09 22:56:12 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-09 22:56:12 +0000
commitb385b7c62ea31004832c74ee0da92a71af774fd2 (patch)
tree4bc929bb0b05770dd079c5f947c340f694ccd87c /clang/lib/Sema/SemaLookup.cpp
parent7d195b93d8f5c063723bf2d8c661b82da8d56628 (diff)
downloadbcm5719-llvm-b385b7c62ea31004832c74ee0da92a71af774fd2.tar.gz
bcm5719-llvm-b385b7c62ea31004832c74ee0da92a71af774fd2.zip
Dead Code Elimination
llvm-svn: 83686
Diffstat (limited to 'clang/lib/Sema/SemaLookup.cpp')
-rw-r--r--clang/lib/Sema/SemaLookup.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 1c6e9368278..aad12ccaa83 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -1352,26 +1352,6 @@ ObjCCategoryImplDecl *Sema::LookupObjCCategoryImpl(IdentifierInfo *II) {
return cast_or_null<ObjCCategoryImplDecl>(D);
}
-// Attempts to find a declaration in the given declaration context
-// with exactly the given type. Returns null if no such declaration
-// was found.
-Decl *Sema::LookupQualifiedNameWithType(DeclContext *DC,
- DeclarationName Name,
- QualType T) {
- LookupResult result;
- LookupQualifiedName(result, DC, Name, LookupOrdinaryName, true);
-
- CanQualType CQT = Context.getCanonicalType(T);
-
- for (LookupResult::iterator ir = result.begin(), ie = result.end();
- ir != ie; ++ir)
- if (FunctionDecl *CurFD = dyn_cast<FunctionDecl>(*ir))
- if (Context.getCanonicalType(CurFD->getType()) == CQT)
- return CurFD;
-
- return NULL;
-}
-
void Sema::LookupOverloadedOperatorName(OverloadedOperatorKind Op, Scope *S,
QualType T1, QualType T2,
FunctionSet &Functions) {
OpenPOWER on IntegriCloud