1include "llvm/Option/OptParser.td" 2 3class F<string letter, string help> : Flag<["-"], letter>, HelpText<help>; 4class FF<string name, string help> : Flag<["--"], name>, HelpText<help>; 5 6multiclass Eq<string name, string help> { 7 def NAME #_EQ : Joined<["--"], name #"=">, HelpText<help>; 8 def : Separate<["--"], name>, Alias<!cast<Joined>(NAME #_EQ)>; 9} 10 11defm arch : Eq<"arch", "Specify the architecture, e.g. x86_64">; 12defm bitwidth : Eq<"bitwidth", "Specify the bit width">; 13defm endianness : Eq<"endianness", "Specify the endianness">; 14defm exclude : Eq<"exclude", "Remove symbols which match the pattern. Can be specified multiple times">; 15def help : FF<"help", "Display this help">; 16def : F<"h", "Alias for --help">, Alias<help>; 17defm hint_ifs_target : Eq<"hint-ifs-target", "When --output-format is 'IFS', this flag will hint the expected target triple for IFS output">; 18defm input : Eq<"input", "input">; 19defm input_format : Eq<"input-format", "Specify the input file format">; 20defm output : Eq<"output", "Output file **DEPRECATED**">; 21def : Separate<["-"], "o">, HelpText<"Alias for --output">, Alias<output_EQ>; 22defm output_elf : Eq<"output-elf", "Output path for ELF file">; 23defm output_format : Eq<"output-format", "Specify the output file format **DEPRECATED**">; 24defm output_ifs : Eq<"output-ifs", "Output path for IFS file">; 25defm output_tbd : Eq<"output-tbd", "Output path for TBD file">; 26defm soname : Eq<"soname", "name">; 27def strip_ifs_arch : FF<"strip-ifs-arch", "Strip target architecture information away from IFS output">; 28def strip_ifs_bitwidth : FF<"strip-ifs-bitwidth", "Strip target bit width information away from IFS output">; 29def strip_ifs_endianness : FF<"strip-ifs-endianness", "Strip target endianness information away from IFS output">; 30def strip_ifs_target : FF<"strip-ifs-target", "Strip all target information away from IFS output">; 31def strip_needed : FF<"strip-needed", "Strip needed libs from output">; 32def strip_size : FF<"strip-size", "Remove object size from the output">; 33def strip_undefined : FF<"strip-undefined", "Strip undefined symbols from IFS output">; 34defm target : Eq<"target", "Specify the target triple, e.g. x86_64-linux-gnu">; 35def version : FF<"version", "Display the version">; 36def : F<"V", "Alias for --version">, Alias<version>; 37def write_if_changed : FF<"write-if-changed", "Write the output file only if it is new or has changed">; 38