mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
This doesn't need a object::Archive::child_iterator.
llvm-svn: 251796
This commit is contained in:
parent
3adda9b6e9
commit
b1fed5af0a
@ -466,7 +466,7 @@ enum InsertAction {
|
||||
};
|
||||
|
||||
static InsertAction computeInsertAction(ArchiveOperation Operation,
|
||||
object::Archive::child_iterator I,
|
||||
const object::Archive::Child &Member,
|
||||
StringRef Name,
|
||||
std::vector<StringRef>::iterator &Pos) {
|
||||
if (Operation == QuickAppend || Members.empty())
|
||||
@ -500,7 +500,7 @@ static InsertAction computeInsertAction(ArchiveOperation Operation,
|
||||
// operation.
|
||||
sys::fs::file_status Status;
|
||||
failIfError(sys::fs::status(*MI, Status), *MI);
|
||||
if (Status.getLastModificationTime() < I->getLastModified()) {
|
||||
if (Status.getLastModificationTime() < Member.getLastModified()) {
|
||||
if (PosName.empty())
|
||||
return IA_AddOldMember;
|
||||
return IA_MoveOldMember;
|
||||
|
Loading…
x
Reference in New Issue
Block a user