diff options
author | Steve Naroff <snaroff@apple.com> | 2009-01-09 15:36:25 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-01-09 15:36:25 +0000 |
commit | b3a8798253f8e4845034c237d45c33e926d55ae8 (patch) | |
tree | 4298ee172a3020e2eb172f885b81e93f0baceeb9 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | ea1086b7f28fc88e0e65858a68d52f040c951954 (diff) | |
download | bcm5719-llvm-b3a8798253f8e4845034c237d45c33e926d55ae8.tar.gz bcm5719-llvm-b3a8798253f8e4845034c237d45c33e926d55ae8.zip |
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.
llvm-svn: 61988
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 03f7b78ec8e..873f21ebcb2 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/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()) |