1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Use a StringRef. No functionality change.

llvm-svn: 220327
This commit is contained in:
Rafael Espindola 2014-10-21 21:07:49 +00:00
parent ee5103d817
commit a68d2115f3

View File

@ -652,11 +652,10 @@ computeNewArchiveMembers(ArchiveOperation Operation,
Ret.insert(Ret.begin() + InsertPos, Members.size(), NewArchiveIterator());
int Pos = InsertPos;
for (std::vector<std::string>::iterator I = Members.begin(),
E = Members.end();
I != E; ++I, ++Pos) {
StringRef Name = sys::path::filename(*I);
addMember(Ret, &*I, Name, Pos);
for (auto &Member : Members) {
StringRef Name = sys::path::filename(Member);
addMember(Ret, &Member, Name, Pos);
++Pos;
}
return Ret;