include "llvm/Option/OptParser.td" // For options whose names are multiple letters, either one dash or // two can precede the option name except those that start with 'o'. class F: Flag<["--", "-"], name>; class J: Joined<["--", "-"], name>; class S: Separate<["--", "-"], name>; multiclass Eq { def "": Separate<["--", "-"], name>; def _eq: Joined<["--", "-"], name # "=">, Alias(NAME)>; } def L: JoinedOrSeparate<["-"], "L">, MetaVarName<"">, HelpText<"Add a directory to the library search path">; def color_diagnostics: F<"color-diagnostics">, HelpText<"Use colors in diagnostics">; def color_diagnostics_eq: J<"color-diagnostics=">, HelpText<"Use colors in diagnostics">; // The follow flags are shared with the ELF linker def help: F<"help">, HelpText<"Print option help">; def l: JoinedOrSeparate<["-"], "l">, MetaVarName<"">, HelpText<"Root name of library to use">; def mllvm: S<"mllvm">, HelpText<"Options to pass to LLVM">; def no_threads: F<"no-threads">, HelpText<"Do not run the linker multi-threaded">; def no_color_diagnostics: F<"no-color-diagnostics">, HelpText<"Do not use colors in diagnostics">; def no_check_signatures: F<"no-check-signatures">, HelpText<"Don't check function signatures">; def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"">, HelpText<"Path to file to write output">; def threads: F<"threads">, HelpText<"Run the linker multi-threaded">; def check_signatures: F<"check-signatures">, HelpText<"Check function signatures">; def v: Flag<["-"], "v">, HelpText<"Display the version number">; def version: F<"version">, HelpText<"Display the version number and exit">; def verbose: F<"verbose">, HelpText<"Verbose mode">; def relocatable: F<"relocatable">, HelpText<"Create relocatable object file">; def emit_relocs: F<"emit-relocs">, HelpText<"Generate relocations in output">; def strip_all: F<"strip-all">, HelpText<"Strip all symbols">; def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">; defm undefined: Eq<"undefined">, HelpText<"Force undefined symbol during linking">; def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"