return QualType(QT, 0);
// No Match;
- ObjcQualifiedInterfaceType *QType = new ObjcQualifiedInterfaceType(IType);
- for (unsigned i = 0; i != NumProtocols; i++)
- QType->setProtocols(Protocols[i]);
+ ObjcQualifiedInterfaceType *QType =
+ new ObjcQualifiedInterfaceType(IType, Protocols, NumProtocols);
Types.push_back(QType);
ObjcQualifiedInterfaceTypes.InsertNode(QType, InsertPos);
return QualType(QType, 0);
// List is sorted on protocol name. No protocol is enterred more than once.
llvm::SmallVector<ObjcProtocolDecl*, 8> Protocols;
- ObjcQualifiedInterfaceType(ObjcInterfaceType *T) :
- Type(ObjcQualifiedInterface, QualType()), InterfaceType(T) { }
-
- void setProtocols(ObjcProtocolDecl *pType) {
- Protocols.push_back(pType);
- }
+ ObjcQualifiedInterfaceType(ObjcInterfaceType *T,
+ ObjcProtocolDecl **Protos, unsigned NumP) :
+ Type(ObjcQualifiedInterface, QualType()), InterfaceType(T),
+ Protocols(Protos, Protos+NumP) { }
friend class ASTContext; // ASTContext creates these.
public: