aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-01-09 15:36:25 +0000
committerSteve Naroff <snaroff@apple.com>2009-01-09 15:36:25 +0000
commit09c4719788a5cea09897525e528fa00420f1677b (patch)
treeb10b6b07b9f1b390eb9fea9f6ff1050079b9afb8 /lib/CodeGen/CGObjCMac.cpp
parent1fd80116b49782c367ff5d5f50a8b76dd8a5d7f7 (diff)
Move property API's up to ObjCContainerDecl (removing a lot of duplicate code).
Add isa/cast/dyncast support for ObjCContainerDecl. Renamed classprop_iterator/begin/end to prop_iterator/begin/end (the class prefix was confusing). More simplifications to Sema::ActOnAtEnd()... Added/changed some FIXME's as a result of the above work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 03f7b78ec8..873f21ebcb 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -782,8 +782,8 @@ CGObjCMac::EmitProtocolExtension(const ObjCProtocolDecl *PD,
Values[3] = EmitPropertyList("\01L_OBJC_$_PROP_PROTO_LIST_" +
PD->getNameAsString(),
0,
- PD->classprop_begin(),
- PD->classprop_end());
+ PD->prop_begin(),
+ PD->prop_end());
// Return null if no extension bits are used.
if (Values[1]->isNullValue() && Values[2]->isNullValue() &&
@@ -1002,8 +1002,8 @@ void CGObjCMac::GenerateCategory(const ObjCCategoryImplDecl *OCD) {
if (Category) {
Values[6] = EmitPropertyList(std::string("\01L_OBJC_$_PROP_LIST_") + ExtName,
OCD,
- Category->classprop_begin(),
- Category->classprop_end());
+ Category->prop_begin(),
+ Category->prop_end());
} else {
Values[6] = llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy);
}
@@ -1279,8 +1279,8 @@ CGObjCMac::EmitClassExtension(const ObjCImplementationDecl *ID) {
Values[1] = llvm::Constant::getNullValue(ObjCTypes.Int8PtrTy);
Values[2] = EmitPropertyList("\01L_OBJC_$_PROP_LIST_" + ID->getNameAsString(),
ID,
- ID->getClassInterface()->classprop_begin(),
- ID->getClassInterface()->classprop_end());
+ ID->getClassInterface()->prop_begin(),
+ ID->getClassInterface()->prop_end());
// Return null if no extension bits are used.
if (Values[1]->isNullValue() && Values[2]->isNullValue())