diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 17:50:17 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2014-03-07 17:50:17 +0000 |
| commit | 43b68bebe708fee758a3c93534118c853bb1b230 (patch) | |
| tree | 54b2bb4553c87c7010656e684cf4c64a7a0ec841 /clang/lib/CodeGen/CGCall.cpp | |
| parent | 6b3d6a4fe9013c3737fb3226d12cd691da05686b (diff) | |
| download | bcm5719-llvm-43b68bebe708fee758a3c93534118c853bb1b230.tar.gz bcm5719-llvm-43b68bebe708fee758a3c93534118c853bb1b230.zip | |
[C++11] Replacing ObjCMethodDecl iterators param_begin() and param_end() with iterator_range params(). Updating all of the usages of the iterators with range-based for loops.
llvm-svn: 203255
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp index 860c871d293..133a692f4ce 100644 --- a/clang/lib/CodeGen/CGCall.cpp +++ b/clang/lib/CodeGen/CGCall.cpp @@ -318,9 +318,8 @@ CodeGenTypes::arrangeObjCMessageSendSignature(const ObjCMethodDecl *MD, argTys.push_back(Context.getCanonicalParamType(receiverType)); argTys.push_back(Context.getCanonicalParamType(Context.getObjCSelType())); // FIXME: Kill copy? - for (ObjCMethodDecl::param_const_iterator i = MD->param_begin(), - e = MD->param_end(); i != e; ++i) { - argTys.push_back(Context.getCanonicalParamType((*i)->getType())); + for (const auto *I : MD->params()) { + argTys.push_back(Context.getCanonicalParamType(I->getType())); } FunctionType::ExtInfo einfo; |

