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

Lines Matching refs:Operation

71 // llvm-ar operation code and modifier flags. This must come first.
73 Options(cl::Positional, cl::Required, cl::desc("{operation}[modifiers]..."));
92 "\nMODIFIERS (operation specific):\n"
119 // 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;
194 case 'd': ++NumOperations; Operation = Delete; break;
195 case 'm': ++NumOperations; Operation = Move ; break;
196 case 'p': ++NumOperations; Operation = Print; break;
197 case 'q': ++NumOperations; Operation = QuickAppend; break;
198 case 'r': ++NumOperations; Operation = ReplaceOrInsert; break;
199 case 't': ++NumOperations; Operation = DisplayTable; break;
200 case 'x': ++NumOperations; Operation = Extract; break;
242 Operation = CreateSymTab;
244 show_help("The s operation takes only an archive as argument");
247 // Perform various checks on the operation/modifier specification
252 show_help("Only one operation may be specified");
256 if (Operation != Move && Operation != ReplaceOrInsert)
260 if (OriginalDates && Operation != Extract)
261 show_help("The 'o' modifier is only applicable to the 'x' operation");
262 if (OnlyUpdate && Operation != ReplaceOrInsert)
263 show_help("The 'u' modifier is only applicable to the 'r' operation");
265 // Return the parsed operation to the caller
266 return Operation;
269 // Implements the 'p' operation. This function traverses the archive
280 // operation is in verbose mode.
296 // Implement the 't' operation. This function prints out just
315 // Implement the 'x' operation. This function extracts files back to the file
365 static void performReadOperation(ArchiveOperation Operation,
377 switch (Operation) {
379 llvm_unreachable("Not a read operation");
463 computeInsertAction(ArchiveOperation Operation,
466 if (Operation == QuickAppend || Members.empty())
477 if (Operation == Delete)
480 if (Operation == Move)
483 if (Operation == ReplaceOrInsert) {
492 // operation.
505 llvm_unreachable("No such operation");
511 computeNewArchiveMembers(ArchiveOperation Operation,
533 InsertAction Action = computeInsertAction(Operation, I, Name, MemberI);
555 if (Operation == Delete)
734 static void performWriteOperation(ArchiveOperation Operation,
746 computeNewArchiveMembers(Operation, OldArchive);
838 static void performOperation(ArchiveOperation Operation,
840 switch (Operation) {
844 performReadOperation(Operation, OldArchive);
851 performWriteOperation(Operation, OldArchive);
857 llvm_unreachable("Unknown operation.");
877 ArchiveOperation Operation = parseCommandLine();
896 performOperation(Operation, &Archive);
902 if (!shouldCreateArchive(Operation)) {
911 performOperation(Operation, NULL);