diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 19:03:34 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-13 19:03:34 +0000 |
commit | aff18c0446f03b5a58716216110cba9d58010318 (patch) | |
tree | 872e823c23b5d6d2c33dc4498a5150205f69d1c7 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a55ddad1340852fdd004c5d1eda0eef6668c54ef (diff) | |
download | bcm5719-llvm-aff18c0446f03b5a58716216110cba9d58010318.tar.gz bcm5719-llvm-aff18c0446f03b5a58716216110cba9d58010318.zip |
[C++11] Replacing ObjCContainerDecl iterators meth_begin() and meth_end() with iterator_range methods(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203832
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f4b47ec579d..98588a4122e 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2851,10 +2851,8 @@ void CodeGenModule::EmitLinkageSpec(const LinkageSpecDecl *LSD) { // Meta-data for ObjC class includes references to implemented methods. // Generate class's method definitions first. if (auto *OID = dyn_cast<ObjCImplDecl>(I)) { - for (ObjCContainerDecl::method_iterator M = OID->meth_begin(), - MEnd = OID->meth_end(); - M != MEnd; ++M) - EmitTopLevelDecl(*M); + for (auto *M : OID->methods()) + EmitTopLevelDecl(M); } EmitTopLevelDecl(I); } |