LipoOpts.td 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. include "llvm/Option/OptParser.td"
  2. def help : Flag<["-", "--"], "help">;
  3. def h : Flag<["-"], "h">, Alias<help>;
  4. def version : Flag<["-", "--"], "version">,
  5. HelpText<"Print the version and exit.">;
  6. def segalign
  7. : MultiArg<["-", "--"], "segalign", 2>,
  8. HelpText<"Specifies the segment alignment for the specified "
  9. "architecture when creating a universal binary file. The "
  10. "alignment is a hexadecimal number that is a power of 2.">;
  11. def arch
  12. : MultiArg<["-", "--"], "arch", 2>,
  13. HelpText<"Specifies the architecture and the corresponding input file">;
  14. def action_group : OptionGroup<"action group">;
  15. def verify_arch
  16. : Option<["-", "--"], "verify_arch", KIND_REMAINING_ARGS>,
  17. Group<action_group>,
  18. HelpText<
  19. "Verify that the specified arch_types are present in the input file">;
  20. def archs : Option<["-", "--"], "archs", KIND_FLAG>,
  21. Group<action_group>,
  22. HelpText<"Display the arch_types present in the input file">;
  23. def info : Option<["-", "--"], "info", KIND_FLAG>,
  24. Group<action_group>,
  25. HelpText<"Display descriptions of each input file including "
  26. "filename and arch_types. Groups universal binaries "
  27. "together followed by thin files">;
  28. def thin : Option<["-", "--"], "thin", KIND_SEPARATE>,
  29. Group<action_group>,
  30. HelpText<"Create a thin output file of specified arch_type from the "
  31. "fat input file. Requires -output option">;
  32. def extract : Option<["-", "--"], "extract", KIND_SEPARATE>,
  33. Group<action_group>,
  34. HelpText<"Create a universal output file containing only the specified "
  35. "arch_type from the fat input file. Requires -output option">;
  36. def create : Option<["-", "--"], "create", KIND_FLAG>,
  37. Group<action_group>,
  38. HelpText<"Create a universal binary output file from the input "
  39. "files. Requires -output option">;
  40. def replace
  41. : MultiArg<["-", "--"], "replace", 2>,
  42. Group<action_group>,
  43. HelpText<"Replace the specified arch type with the contents of the "
  44. "input_file in a universal binary. Requires -output option">;
  45. def output : Option<["-", "--"], "output", KIND_SEPARATE>,
  46. HelpText<"Create output file with specified name">;
  47. def o : JoinedOrSeparate<["-"], "o">, Alias<output>;