[lld] r181503 - [lld] Use range based for loop instead of explicit iterators (no functionality change)
Rui Ueyama
ruiu at google.com
Wed May 8 21:00:44 PDT 2013
Author: ruiu
Date: Wed May 8 23:00:44 2013
New Revision: 181503
URL: http://llvm.org/viewvc/llvm-project?rev=181503&view=rev
Log:
[lld] Use range based for loop instead of explicit iterators (no functionality change)
Modified:
lld/trunk/lib/Core/Resolver.cpp
Modified: lld/trunk/lib/Core/Resolver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Resolver.cpp?rev=181503&r1=181502&r2=181503&view=diff
==============================================================================
--- lld/trunk/lib/Core/Resolver.cpp (original)
+++ lld/trunk/lib/Core/Resolver.cpp Wed May 8 23:00:44 2013
@@ -176,9 +176,8 @@ void Resolver::doAbsoluteAtom(const Abso
// 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);
}
}
More information about the llvm-commits
mailing list