diff options
| author | Rui Ueyama <ruiu@google.com> | 2013-05-09 04:00:44 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2013-05-09 04:00:44 +0000 |
| commit | 90b3b92a8b8f052e36370eb942f245e6c9694ba6 (patch) | |
| tree | 60ce1144d5bbdabe8ffc0ea947520adc9e9d07a4 /lld/lib/Core | |
| parent | 0d15f7313f0280e0f3445adc52bbb646a0521057 (diff) | |
| download | bcm5719-llvm-90b3b92a8b8f052e36370eb942f245e6c9694ba6.tar.gz bcm5719-llvm-90b3b92a8b8f052e36370eb942f245e6c9694ba6.zip | |
[lld] Use range based for loop instead of explicit iterators (no functionality change)
llvm-svn: 181503
Diffstat (limited to 'lld/lib/Core')
| -rw-r--r-- | lld/lib/Core/Resolver.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/lib/Core/Resolver.cpp b/lld/lib/Core/Resolver.cpp index 1cc18e00679..ccbecd7b3de 100644 --- a/lld/lib/Core/Resolver.cpp +++ b/lld/lib/Core/Resolver.cpp @@ -176,9 +176,8 @@ void Resolver::doAbsoluteAtom(const AbsoluteAtom& atom) { // utility to add a vector of atoms void Resolver::addAtoms(const std::vector<const DefinedAtom*>& newAtoms) { - for (std::vector<const DefinedAtom *>::const_iterator it = newAtoms.begin(); - it != newAtoms.end(); ++it) { - this->doDefinedAtom(**it); + for (const DefinedAtom *newAtom : newAtoms) { + this->doDefinedAtom(*newAtom); } } |

