[llvm] r251796 - This doesn't need a object::Archive::child_iterator.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 05:30:46 PST 2015


Author: rafael
Date: Mon Nov  2 07:30:46 2015
New Revision: 251796

URL: http://llvm.org/viewvc/llvm-project?rev=251796&view=rev
Log:
This doesn't need a object::Archive::child_iterator.

Modified:
    llvm/trunk/tools/llvm-ar/llvm-ar.cpp

Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=251796&r1=251795&r2=251796&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Mon Nov  2 07:30:46 2015
@@ -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(
     // 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;




More information about the llvm-commits mailing list