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 | 09c4719788a5cea09897525e528fa00420f1677b (patch) | |
tree | b10b6b07b9f1b390eb9fea9f6ff1050079b9afb8 /lib/AST/TranslationUnit.cpp | |
parent | 1fd80116b49782c367ff5d5f50a8b76dd8a5d7f7 (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.cpp | 8 |
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); |