Use a StringRef. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220327 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-10-21 21:07:49 +00:00
parent 5b69592c5a
commit 41e69be6cb

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;