diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:02:45 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-14 15:02:45 +0000 |
commit | d85eff49a3c0e2365b3457c762d4bdb72f82800f (patch) | |
tree | 614de878d0541998690a9ec44e7dc1b42103ff84 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | 5c77e39f2d867e4862a557aab6d81f0d6d8165c4 (diff) | |
download | bcm5719-llvm-d85eff49a3c0e2365b3457c762d4bdb72f82800f.tar.gz bcm5719-llvm-d85eff49a3c0e2365b3457c762d4bdb72f82800f.zip |
[C++11] Replacing ObjCCategoryDecl iterators propimpl_begin() and propimpl_end() with iterator_range property_impls(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203930
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 867ac8bf621..64b55d21c29 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -3062,10 +3062,7 @@ void CGObjCMac::GenerateClass(const ObjCImplementationDecl *ID) { // Class methods should always be defined. ClassMethods.push_back(GetMethodConstant(I)); - for (ObjCImplementationDecl::propimpl_iterator - i = ID->propimpl_begin(), e = ID->propimpl_end(); i != e; ++i) { - ObjCPropertyImplDecl *PID = *i; - + for (const auto *PID : ID->property_impls()) { if (PID->getPropertyImplementation() == ObjCPropertyImplDecl::Synthesize) { ObjCPropertyDecl *PD = PID->getPropertyDecl(); @@ -5650,10 +5647,7 @@ llvm::GlobalVariable * CGObjCNonFragileABIMac::BuildClassRoTInitializer( // Instance methods should always be defined. Methods.push_back(GetMethodConstant(I)); - for (ObjCImplementationDecl::propimpl_iterator - i = ID->propimpl_begin(), e = ID->propimpl_end(); i != e; ++i) { - ObjCPropertyImplDecl *PID = *i; - + for (const auto *PID : ID->property_impls()) { if (PID->getPropertyImplementation() == ObjCPropertyImplDecl::Synthesize){ ObjCPropertyDecl *PD = PID->getPropertyDecl(); |