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 1d6d08bb4d
commit 4c1f801b81
1 changed files with 4 additions and 5 deletions

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;