@@ -1125,8 +1125,7 @@ static void performOperation(ArchiveOperation Operation,
11251125 llvm_unreachable (" Unknown operation." );
11261126}
11271127
1128- static int performOperation (ArchiveOperation Operation,
1129- std::vector<NewArchiveMember> *NewMembers) {
1128+ static int performOperation (ArchiveOperation Operation) {
11301129 // Create or open the archive object.
11311130 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getFile (
11321131 ArchiveName, /* IsText=*/ false , /* RequiresNullTerminator=*/ false );
@@ -1145,7 +1144,7 @@ static int performOperation(ArchiveOperation Operation,
11451144 if (Archive->isThin ())
11461145 CompareFullPath = true ;
11471146 performOperation (Operation, Archive.get (), std::move (Buf.get ()),
1148- NewMembers);
1147+ /* NewMembers= */ nullptr );
11491148 return 0 ;
11501149 }
11511150
@@ -1160,7 +1159,7 @@ static int performOperation(ArchiveOperation Operation,
11601159 }
11611160 }
11621161
1163- performOperation (Operation, nullptr , nullptr , NewMembers);
1162+ performOperation (Operation, nullptr , nullptr , /* NewMembers= */ nullptr );
11641163 return 0 ;
11651164}
11661165
@@ -1403,8 +1402,7 @@ static int ar_main(int argc, char **argv) {
14031402 Options += *ArgIt + 1 ;
14041403 }
14051404
1406- ArchiveOperation Operation = parseCommandLine ();
1407- return performOperation (Operation, nullptr );
1405+ return performOperation (parseCommandLine ());
14081406}
14091407
14101408static int ranlib_main (int argc, char **argv) {
@@ -1442,7 +1440,7 @@ static int ranlib_main(int argc, char **argv) {
14421440 if (!ArchiveSpecified) {
14431441 badUsage (" an archive name must be specified" );
14441442 }
1445- return performOperation (CreateSymTab, nullptr );
1443+ return performOperation (CreateSymTab);
14461444}
14471445
14481446int llvm_ar_main (int argc, char **argv) {
0 commit comments