[cfe-commits] r66385 - /cfe/trunk/lib/Sema/SemaExprObjC.cpp
Steve Naroff
snaroff at apple.com
Sun Mar 8 12:04:05 PDT 2009
Author: snaroff
Date: Sun Mar 8 14:04:05 2009
New Revision: 66385
URL: http://llvm.org/viewvc/llvm-project?rev=66385&view=rev
Log:
Remove dead clause (we decided not to support protocol qualified 'Class').
Modified:
cfe/trunk/lib/Sema/SemaExprObjC.cpp
Modified: cfe/trunk/lib/Sema/SemaExprObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprObjC.cpp?rev=66385&r1=66384&r2=66385&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprObjC.cpp Sun Mar 8 14:04:05 2009
@@ -471,15 +471,6 @@
if (PDecl && (Method = PDecl->lookupInstanceMethod(Sel)))
break;
}
- // Check for GCC extension "Class<foo>".
- } else if (ObjCQualifiedClassType *QIT =
- dyn_cast<ObjCQualifiedClassType>(ReceiverCType)) {
- // Search protocols for class methods.
- for (unsigned i = 0; i < QIT->getNumProtocols(); i++) {
- ObjCProtocolDecl *PDecl = QIT->getProtocols(i);
- if (PDecl && (Method = PDecl->lookupClassMethod(Sel)))
- break;
- }
} else if (const ObjCInterfaceType *OCIType =
ReceiverCType->getAsPointerToObjCInterfaceType()) {
// We allow sending a message to a pointer to an interface (an object).
More information about the cfe-commits
mailing list