Currently, `printHelp` behaves differently for options that: * do not define `HelpText` (such options _are not printed_), and * define its `HelpText` as `HelpText<"">` (such options _are printed_). In practice, both approaches lead to no help text and `printHelp` should treat them consistently. This patch addresses that by making `printHelpt` check the length of the help text to be printed. All affected tests have been updated accordingly. The option definitions for llvm-cvtres have been updated with a short description or "Not implemented" for options that are ignored by the tool. Differential Revision: https://reviews.llvm.org/D107557
20 lines
1004 B
TableGen
20 lines
1004 B
TableGen
include "llvm/Option/OptParser.td"
|
|
|
|
// All the switches can be preceded by either '/' or '-'.
|
|
|
|
def DEFINE : Joined<["/", "-"], "DEFINE:">, HelpText<"Not implemented">, MetaVarName<"symbol">;
|
|
def FOLDDUPS : Flag<["/", "-"], "FOLDDUPS:">, HelpText<"Not implemented">;
|
|
def MACHINE : Joined<["/", "-"], "MACHINE:">, HelpText<"Machine architecture">, MetaVarName<"{ARM|ARM64|EBC|IA64|X64|X86}">;
|
|
def NOLOGO : Flag<["/", "-"], "NOLOGO">, HelpText<"Not implemented">;
|
|
def OUT : Joined<["/", "-"], "OUT:">, HelpText<"Output file">, MetaVarName<"filename">;
|
|
def READONLY : Flag<["/", "-"], "READONLY">, HelpText<"Not implemented">;
|
|
def VERBOSE : Flag<["/", "-"], "VERBOSE">, HelpText<"Use verbose output">;
|
|
def HELP : Flag<["/", "-"], "HELP">, HelpText<"Display available options">;
|
|
def H : Flag<["/", "-"], "H">, Alias<HELP>;
|
|
def HELP_Q : Flag<["/?", "-?"], "">, Alias<HELP>;
|
|
|
|
// Extensions.
|
|
|
|
def TIMESTAMP : Joined<["/", "-"], "TIMESTAMP:">,
|
|
HelpText<"Timestamp for coff header, defaults to current time">;
|