Index: lld/trunk/wasm/Options.td =================================================================== --- lld/trunk/wasm/Options.td +++ lld/trunk/wasm/Options.td @@ -6,9 +6,10 @@ class J: Joined<["--", "-"], name>; class S: Separate<["--", "-"], name>; -multiclass Eq { - def "": Separate<["--", "-"], name>; - def _eq: Joined<["--", "-"], name # "=">, Alias(NAME)>; +multiclass Eq { + def NAME: Separate<["--", "-"], name>; + def NAME # _eq: Joined<["--", "-"], name # "=">, Alias(NAME)>, + HelpText; } multiclass B { @@ -86,8 +87,7 @@ def threads: F<"threads">, HelpText<"Run the linker multi-threaded">; -defm undefined: Eq<"undefined">, - HelpText<"Force undefined symbol during linking">; +defm undefined: Eq<"undefined", "Force undefined symbol during linking">; def v: Flag<["-"], "v">, HelpText<"Display the version number">; @@ -109,8 +109,7 @@ def allow_undefined_file_s: Separate<["-"], "allow-undefined-file">, Alias; -defm export: Eq<"export">, - HelpText<"Force a symbol to be exported">; +defm export: Eq<"export", "Force a symbol to be exported">; def export_all: F<"export-all">, HelpText<"Export all symbols (normally combined with --no-gc-sections)">; @@ -161,6 +160,5 @@ def save_temps: F<"save-temps">; def thinlto_cache_dir: J<"thinlto-cache-dir=">, HelpText<"Path to ThinLTO cached object file directory">; -defm thinlto_cache_policy: Eq<"thinlto-cache-policy">, - HelpText<"Pruning policy for the ThinLTO cache">; +defm thinlto_cache_policy: Eq<"thinlto-cache-policy", "Pruning policy for the ThinLTO cache">; def thinlto_jobs: J<"thinlto-jobs=">, HelpText<"Number of ThinLTO jobs">;