Remove ASTContext::getObjCQualifiedIdType().
Convert clients to use ASTContext::getObjCObjectPointerType(). llvm-svn: 74424
This commit is contained in:
parent
dbf11ba800
commit
8d9cc9ebc1
|
@ -351,12 +351,6 @@ public:
|
|||
ObjCProtocolDecl **ProtocolList,
|
||||
unsigned NumProtocols);
|
||||
|
||||
/// getObjCQualifiedIdType - Return an ObjCQualifiedIdType for a
|
||||
/// given 'id' and conforming protocol list.
|
||||
QualType getObjCQualifiedIdType(ObjCProtocolDecl **ProtocolList,
|
||||
unsigned NumProtocols);
|
||||
|
||||
|
||||
/// getTypeOfType - GCC extension.
|
||||
QualType getTypeOfExprType(Expr *e);
|
||||
QualType getTypeOfType(QualType t);
|
||||
|
|
|
@ -1636,13 +1636,6 @@ QualType ASTContext::getObjCQualifiedInterfaceType(ObjCInterfaceDecl *Decl,
|
|||
return QualType(QType, 0);
|
||||
}
|
||||
|
||||
/// getObjCQualifiedIdType - Return an ObjCQualifiedIdType for the 'id' decl
|
||||
/// and the conforming protocol list.
|
||||
QualType ASTContext::getObjCQualifiedIdType(ObjCProtocolDecl **Protocols,
|
||||
unsigned NumProtocols) {
|
||||
return getObjCObjectPointerType(0, Protocols, NumProtocols);
|
||||
}
|
||||
|
||||
/// getTypeOfExprType - Unlike many "get<Type>" functions, we can't unique
|
||||
/// TypeOfExprType AST's (since expression's are never shared). For example,
|
||||
/// multiple declarations that refer to "typeof(x)" all contain different
|
||||
|
|
|
@ -89,8 +89,8 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
|
|||
case DeclSpec::TST_unspecified:
|
||||
// "<proto1,proto2>" is an objc qualified ID with a missing id.
|
||||
if (DeclSpec::ProtocolQualifierListTy PQ = DS.getProtocolQualifiers()) {
|
||||
Result = Context.getObjCQualifiedIdType((ObjCProtocolDecl**)PQ,
|
||||
DS.getNumProtocolQualifiers());
|
||||
Result = Context.getObjCObjectPointerType(0, (ObjCProtocolDecl**)PQ,
|
||||
DS.getNumProtocolQualifiers());
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -200,8 +200,8 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS,
|
|||
DS.getNumProtocolQualifiers());
|
||||
else if (Result == Context.getObjCIdType())
|
||||
// id<protocol-list>
|
||||
Result = Context.getObjCQualifiedIdType((ObjCProtocolDecl**)PQ,
|
||||
DS.getNumProtocolQualifiers());
|
||||
Result = Context.getObjCObjectPointerType(0, (ObjCProtocolDecl**)PQ,
|
||||
DS.getNumProtocolQualifiers());
|
||||
else if (Result == Context.getObjCClassType()) {
|
||||
if (DeclLoc.isInvalid())
|
||||
DeclLoc = DS.getSourceRange().getBegin();
|
||||
|
|
Loading…
Reference in New Issue