summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-07-16 15:41:00 +0000
committerSteve Naroff <snaroff@apple.com>2009-07-16 15:41:00 +0000
commit79d1215d83b14d26ef7dd287eced32849a44a524 (patch)
tree766f70e11be9ecc163ca5585485716f32553bac8 /clang/lib/CodeGen
parent559835f0267418da725f3ddce7338ca8d848a2cb (diff)
downloadbcm5719-llvm-79d1215d83b14d26ef7dd287eced32849a44a524.tar.gz
bcm5719-llvm-79d1215d83b14d26ef7dd287eced32849a44a524.zip
Remove ASTContext::isObjCObjectPointerType().
Convert all clients to use the new predicate on Type. llvm-svn: 76076
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBlocks.h2
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.h b/clang/lib/CodeGen/CGBlocks.h
index 05d66de3f99..5a0af04b24d 100644
--- a/clang/lib/CodeGen/CGBlocks.h
+++ b/clang/lib/CodeGen/CGBlocks.h
@@ -223,7 +223,7 @@ public:
return true;
if (getContext().isObjCNSObjectType(Ty))
return true;
- if (getContext().isObjCObjectPointerType(Ty))
+ if (Ty->isObjCObjectPointerType())
return true;
return false;
}
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 377834d2479..346b6703d37 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -1070,7 +1070,7 @@ LValue CodeGenFunction::EmitLValueForField(llvm::Value* BaseValue,
if (attr == QualType::Weak)
attr = QualType::GCNone;
}
- else if (getContext().isObjCObjectPointerType(Ty))
+ else if (Ty->isObjCObjectPointerType())
attr = QualType::Strong;
}
LValue LV =
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index 70eb6a70e15..661f75a057c 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -3005,7 +3005,7 @@ static QualType::GCAttrTypes GetGCAttrTypeForType(ASTContext &Ctx,
if (FQT.isObjCGCWeak())
return QualType::Weak;
- if (Ctx.isObjCObjectPointerType(FQT))
+ if (FQT->isObjCObjectPointerType())
return QualType::Strong;
if (const PointerType *PT = FQT->getAsPointerType())
OpenPOWER on IntegriCloud