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

Lines Matching refs:Operation

35 // llvm-ar operation code and modifier flags. This must come first.

37 Options(cl::Positional, cl::Required, cl::desc("{operation}[modifiers]..."));
56 "\nMODIFIERS (operation specific):\n"
79 NoOperation, ///< An operation hasn't been specified
89 // Modifiers to follow operation to vary behavior
175 // operation specified. Process all modifiers and check to make sure that
176 // constraints on modifier/operation pairs have not been violated.
187 // Keep track of which operation was requested
188 ArchiveOperation Operation = NoOperation;
192 case 'd': ++NumOperations; Operation = Delete; break;
193 case 'm': ++NumOperations; Operation = Move ; break;
194 case 'p': ++NumOperations; Operation = Print; break;
195 case 'q': ++NumOperations; Operation = QuickAppend; break;
196 case 'r': ++NumOperations; Operation = ReplaceOrInsert; break;
197 case 't': ++NumOperations; Operation = DisplayTable; break;
198 case 'x': ++NumOperations; Operation = Extract; break;
243 // Perform various checks on the operation/modifier specification
248 throw "Only one operation may be specified";
252 if (Operation != Move && Operation != ReplaceOrInsert)
255 if (RecurseDirectories && Operation != ReplaceOrInsert)
256 throw "The 'R' modifiers is only applicabe to the 'r' operation";
257 if (OriginalDates && Operation != Extract)
258 throw "The 'o' modifier is only applicable to the 'x' operation";
259 if (TruncateNames && Operation!=QuickAppend && Operation!=ReplaceOrInsert)
261 if (OnlyUpdate && Operation != ReplaceOrInsert)
262 throw "The 'u' modifier is only applicable to the 'r' operation";
263 if (Compression && Operation!=ReplaceOrInsert && Operation!=Extract)
268 // Return the parsed operation to the caller
269 return Operation;
348 // doPrint - Implements the 'p' operation. This function traverses the archive
382 // operation is in verbose mode.
399 // doDisplayTable - Implement the 't' operation. This function prints out just
439 // doExtract - Implement the 'x' operation
480 // doDelete - Implement the delete operation. This function deletes zero or more
513 // doMore - Implement the move operation. This function re-arranges just the
568 // doQuickAppend - Implements the 'q' operation. This function just
593 // doReplaceOrInsert - Implements the 'r' operation. This function will replace
712 ArchiveOperation Operation = parseCommandLine();
743 // Perform the operation
746 switch (Operation) {
755 errs() << argv[0] << ": No operation was selected.\n";