aboutsummaryrefslogtreecommitdiff
path: root/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
commit3135df59cbe140923d9e81c09e3e324c01418bb6 (patch)
tree8679873c8a355052bae76433f4c3f3cfc0d46ad8 /lib/Sema/SemaLookup.cpp
parentf11e6b24ee5acf95536b94a1d0b20dd04aeca2c4 (diff)
Dead Code Elimination
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaLookup.cpp')
-rw-r--r--lib/Sema/SemaLookup.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp
index 1c6e936827..aad12ccaa8 100644
--- a/lib/Sema/SemaLookup.cpp
+++ b/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) {