aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/TranslationUnit.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/AST/TranslationUnit.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/AST/TranslationUnit.cpp')
-rw-r--r--lib/AST/TranslationUnit.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/TranslationUnit.cpp b/lib/AST/TranslationUnit.cpp
index adf687678a..c02db82dab 100644
--- a/lib/AST/TranslationUnit.cpp
+++ b/lib/AST/TranslationUnit.cpp
@@ -46,8 +46,8 @@ TranslationUnit::~TranslationUnit() {
// eventually be fixed when the ownership of ObjCPropertyDecls gets
// cleaned up.
if (ObjCInterfaceDecl* IDecl = dyn_cast<ObjCInterfaceDecl>(*I))
- for (ObjCInterfaceDecl::classprop_iterator ID=IDecl->classprop_begin(),
- ED=IDecl->classprop_end(); ID!=ED; ++ID) {
+ for (ObjCInterfaceDecl::prop_iterator ID=IDecl->prop_begin(),
+ ED=IDecl->prop_end(); ID!=ED; ++ID) {
if (!*ID || Killed.count(*ID)) continue;
Killed.insert(*ID);
(*ID)->Destroy(*Context);
@@ -59,8 +59,8 @@ TranslationUnit::~TranslationUnit() {
// eventually be fixed when the ownership of ObjCPropertyDecls gets
// cleaned up.
if (ObjCProtocolDecl* PDecl = dyn_cast<ObjCProtocolDecl>(*I))
- for (ObjCProtocolDecl::classprop_iterator ID=PDecl->classprop_begin(),
- ED=PDecl->classprop_end(); ID!=ED; ++ID) {
+ for (ObjCProtocolDecl::prop_iterator ID=PDecl->prop_begin(),
+ ED=PDecl->prop_end(); ID!=ED; ++ID) {
if (!*ID || Killed.count(*ID)) continue;
Killed.insert(*ID);
(*ID)->Destroy(*Context);