mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
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:
parent
5b69592c5a
commit
41e69be6cb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user