mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use a range loop. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e7f45f66a7
commit
cf8f6a296f
@ -281,16 +281,14 @@ llvm::writeArchive(StringRef ArcName,
|
|||||||
unsigned LongNameMemberNum = 0;
|
unsigned LongNameMemberNum = 0;
|
||||||
unsigned NewMemberNum = 0;
|
unsigned NewMemberNum = 0;
|
||||||
std::vector<unsigned> MemberOffset;
|
std::vector<unsigned> MemberOffset;
|
||||||
for (std::vector<NewArchiveIterator>::iterator I = NewMembers.begin(),
|
for (const NewArchiveIterator &I : NewMembers) {
|
||||||
E = NewMembers.end();
|
MemoryBufferRef File = Members[MemberNum++];
|
||||||
I != E; ++I, ++MemberNum) {
|
|
||||||
|
|
||||||
unsigned Pos = Out.tell();
|
unsigned Pos = Out.tell();
|
||||||
MemberOffset.push_back(Pos);
|
MemberOffset.push_back(Pos);
|
||||||
|
|
||||||
MemoryBufferRef File = Members[MemberNum];
|
if (I.isNewMember()) {
|
||||||
if (I->isNewMember()) {
|
StringRef FileName = I.getNew();
|
||||||
StringRef FileName = I->getNew();
|
|
||||||
const sys::fs::file_status &Status = NewMemberStatus[NewMemberNum];
|
const sys::fs::file_status &Status = NewMemberStatus[NewMemberNum];
|
||||||
NewMemberNum++;
|
NewMemberNum++;
|
||||||
|
|
||||||
@ -305,8 +303,8 @@ llvm::writeArchive(StringRef ArcName,
|
|||||||
Status.getGroup(), Status.permissions(),
|
Status.getGroup(), Status.permissions(),
|
||||||
Status.getSize());
|
Status.getSize());
|
||||||
} else {
|
} else {
|
||||||
object::Archive::child_iterator OldMember = I->getOld();
|
object::Archive::child_iterator OldMember = I.getOld();
|
||||||
StringRef Name = I->getName();
|
StringRef Name = I.getName();
|
||||||
|
|
||||||
if (Name.size() < 16)
|
if (Name.size() < 16)
|
||||||
printMemberHeader(Out, Name, OldMember->getLastModified(),
|
printMemberHeader(Out, Name, OldMember->getLastModified(),
|
||||||
|
Loading…
Reference in New Issue
Block a user