[lld] r344887 - [WebAssembly] Simplify --help message
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 22 01:34:38 PDT 2018
Author: sbc
Date: Mon Oct 22 01:34:37 2018
New Revision: 344887
URL: http://llvm.org/viewvc/llvm-project?rev=344887&view=rev
Log:
[WebAssembly] Simplify --help message
Update wasm to match ELF changes made rL333596.
Differential Revision: https://reviews.llvm.org/D53421
Modified:
lld/trunk/wasm/Options.td
Modified: lld/trunk/wasm/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Options.td?rev=344887&r1=344886&r2=344887&view=diff
==============================================================================
--- lld/trunk/wasm/Options.td (original)
+++ lld/trunk/wasm/Options.td Mon Oct 22 01:34:37 2018
@@ -6,9 +6,10 @@ class F<string name>: Flag<["--", "-"],
class J<string name>: Joined<["--", "-"], name>;
class S<string name>: Separate<["--", "-"], name>;
-multiclass Eq<string name> {
- def "": Separate<["--", "-"], name>;
- def _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>;
+multiclass Eq<string name, string help> {
+ def NAME: Separate<["--", "-"], name>;
+ def NAME # _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>,
+ HelpText<help>;
}
multiclass B<string name, string help1, string help2> {
@@ -86,8 +87,7 @@ def strip_debug: F<"strip-debug">, HelpT
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: J<"allow-undef
def allow_undefined_file_s: Separate<["-"], "allow-undefined-file">,
Alias<allow_undefined_file>;
-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 disable_verify: F<"disable-verify">;
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">;
More information about the llvm-commits
mailing list