Home | History | Annotate | Download | only in llvm-ar

Lines Matching refs:Operation

112   "\nMODIFIERS (operation specific):\n"
138 // Modifiers to follow operation to vary behavior
203 // Parse the command line options as presented and return the operation
205 // modifier/operation pairs have not been violated.
223 // Keep track of which operation was requested
224 ArchiveOperation Operation;
230 case 'd': ++NumOperations; Operation = Delete; break;
231 case 'm': ++NumOperations; Operation = Move ; break;
232 case 'p': ++NumOperations; Operation = Print; break;
233 case 'q': ++NumOperations; Operation = QuickAppend; break;
234 case 'r': ++NumOperations; Operation = ReplaceOrInsert; break;
235 case 't': ++NumOperations; Operation = DisplayTable; break;
236 case 'x': ++NumOperations; Operation = Extract; break;
287 Operation = CreateSymTab;
289 show_help("The s operation takes only an archive as argument");
292 // Perform various checks on the operation/modifier specification
297 show_help("Only one operation may be specified");
301 if (Operation != Move && Operation != ReplaceOrInsert)
305 if (OriginalDates && Operation != Extract)
306 show_help("The 'o' modifier is only applicable to the 'x' operation");
307 if (OnlyUpdate && Operation != ReplaceOrInsert)
308 show_help("The 'u' modifier is only applicable to the 'r' operation");
310 // Return the parsed operation to the caller
311 return Operation;
314 // Implements the 'p' operation. This function traverses the archive
326 // Utility function for printing out the file mode when the 't' operation is in
334 // Implement the 't' operation. This function prints out just
355 // Implement the 'x' operation. This function extracts files back to the file
402 static void performReadOperation(ArchiveOperation Operation,
404 if (Operation == Extract && OldArchive->isThin())
422 switch (Operation) {
424 llvm_unreachable("Not a read operation");
478 static InsertAction computeInsertAction(ArchiveOperation Operation,
482 if (Operation == QuickAppend || Members.empty())
495 if (Operation == Delete)
498 if (Operation == Move)
501 if (Operation == ReplaceOrInsert) {
510 // operation.
523 llvm_unreachable("No such operation");
529 computeNewArchiveMembers(ArchiveOperation Operation,
552 computeInsertAction(Operation, Child, Name, MemberI);
575 if (Operation == Delete)
622 performWriteOperation(ArchiveOperation Operation,
628 NewMembers = computeNewArchiveMembers(Operation, OldArchive);
673 static void performOperation(ArchiveOperation Operation,
677 switch (Operation) {
681 performReadOperation(Operation, OldArchive);
688 performWriteOperation(Operation, OldArchive, std::move(OldArchiveBuf),
695 llvm_unreachable("Unknown operation.");
698 static int performOperation(ArchiveOperation Operation,
713 performOperation(Operation, &Archive, std::move(Buf.get()), NewMembers);
719 if (!shouldCreateArchive(Operation)) {
728 performOperation(Operation, nullptr, nullptr, NewMembers);
807 ArchiveOperation Operation = parseCommandLine();
808 return performOperation(Operation, nullptr);