llvm.org GIT mirror llvm / a16eb61
This doesn't need a object::Archive::child_iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251796 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
465465 };
466466
467467 static InsertAction computeInsertAction(ArchiveOperation Operation,
468 object::Archive::child_iterator I,
468 const object::Archive::Child &Member,
469469 StringRef Name,
470470 std::vector::iterator &Pos) {
471471 if (Operation == QuickAppend || Members.empty())
499499 // operation.
500500 sys::fs::file_status Status;
501501 failIfError(sys::fs::status(*MI, Status), *MI);
502 if (Status.getLastModificationTime() < I->getLastModified()) {
502 if (Status.getLastModificationTime() < Member.getLastModified()) {
503503 if (PosName.empty())
504504 return IA_AddOldMember;
505505 return IA_MoveOldMember;