[llvm] r242250 - Use a range loop.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jul 14 16:51:01 PDT 2015
Author: rafael
Date: Tue Jul 14 18:51:01 2015
New Revision: 242250
URL: http://llvm.org/viewvc/llvm-project?rev=242250&view=rev
Log:
Use a range loop.
Modified:
llvm/trunk/lib/Object/ArchiveWriter.cpp
Modified: llvm/trunk/lib/Object/ArchiveWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ArchiveWriter.cpp?rev=242250&r1=242249&r2=242250&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ArchiveWriter.cpp (original)
+++ llvm/trunk/lib/Object/ArchiveWriter.cpp Tue Jul 14 18:51:01 2015
@@ -154,10 +154,8 @@ static void writeStringTable(raw_fd_ostr
ArrayRef<NewArchiveIterator> Members,
std::vector<unsigned> &StringMapIndexes) {
unsigned StartOffset = 0;
- for (ArrayRef<NewArchiveIterator>::iterator I = Members.begin(),
- E = Members.end();
- I != E; ++I) {
- StringRef Name = I->getName();
+ for (const NewArchiveIterator &I : Members) {
+ StringRef Name = I.getName();
if (Name.size() < 16)
continue;
if (StartOffset == 0) {
More information about the llvm-commits
mailing list