Remove ASTContext::isObjCObjectPointerType().
Convert all clients to use the new predicate on Type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76076 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGBlocks.h b/lib/CodeGen/CGBlocks.h
index 05d66de..5a0af04 100644
--- a/lib/CodeGen/CGBlocks.h
+++ b/lib/CodeGen/CGBlocks.h
@@ -223,7 +223,7 @@
return true;
if (getContext().isObjCNSObjectType(Ty))
return true;
- if (getContext().isObjCObjectPointerType(Ty))
+ if (Ty->isObjCObjectPointerType())
return true;
return false;
}
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 377834d..346b670 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -1070,7 +1070,7 @@
if (attr == QualType::Weak)
attr = QualType::GCNone;
}
- else if (getContext().isObjCObjectPointerType(Ty))
+ else if (Ty->isObjCObjectPointerType())
attr = QualType::Strong;
}
LValue LV =
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 70eb6a7..661f75a 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -3005,7 +3005,7 @@
if (FQT.isObjCGCWeak())
return QualType::Weak;
- if (Ctx.isObjCObjectPointerType(FQT))
+ if (FQT->isObjCObjectPointerType())
return QualType::Strong;
if (const PointerType *PT = FQT->getAsPointerType())