[PATCH] D42627: [WebAssembly] Sort options in `Options.td`. NFC.
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 28 11:52:59 PST 2018
sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D42627
Files:
wasm/Options.td
Index: wasm/Options.td
===================================================================
--- wasm/Options.td
+++ wasm/Options.td
@@ -11,6 +11,7 @@
def _eq: Joined<["--", "-"], name # "=">, Alias<!cast<Separate>(NAME)>;
}
+// The follow flags are shared with the ELF linker
def L: JoinedOrSeparate<["-"], "L">, MetaVarName<"<dir>">,
HelpText<"Add a directory to the library search path">;
@@ -20,7 +21,15 @@
def color_diagnostics_eq: J<"color-diagnostics=">,
HelpText<"Use colors in diagnostics">;
-// The follow flags are shared with the ELF linker
+def entry: S<"entry">, MetaVarName<"<entry>">,
+ HelpText<"Name of entry point symbol">;
+
+def error_limit: J<"error-limit=">,
+ HelpText<"Maximum number of errors to emit before stopping (0 = no limit)">;
+
+def fatal_warnings: F<"fatal-warnings">,
+ HelpText<"Treat warnings as errors">;
+
def help: F<"help">, HelpText<"Print option help">;
def l: JoinedOrSeparate<["-"], "l">, MetaVarName<"<libName>">,
@@ -34,43 +43,34 @@
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 no_fatal_warnings: F<"no-fatal-warnings">;
def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
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 strip_all: F<"strip-all">, HelpText<"Strip all symbols">;
def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">;
+def threads: F<"threads">, HelpText<"Run the linker multi-threaded">;
+
+def v: Flag<["-"], "v">, HelpText<"Display the version number">;
+
defm undefined: Eq<"undefined">,
HelpText<"Force undefined symbol during linking">;
-def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"<option>">,
- HelpText<"Linker option extensions">;
-
-def entry: S<"entry">, MetaVarName<"<entry>">,
- HelpText<"Name of entry point symbol">;
+def version: F<"version">, HelpText<"Display the version number and exit">;
-def no_entry: F<"no-entry">,
- HelpText<"Do not output any entry point">;
+def verbose: F<"verbose">, HelpText<"Verbose mode">;
-def error_limit: J<"error-limit=">,
- HelpText<"Maximum number of errors to emit before stopping (0 = no limit)">;
+def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"<option>">,
+ HelpText<"Linker option extensions">;
// The follow flags are unique to wasm
+def check_signatures: F<"check-signatures">,
+ HelpText<"Check function signatures">;
defm export: Eq<"export">,
HelpText<"Force a symbol to be exported">;
@@ -81,6 +81,12 @@
def initial_memory: J<"initial-memory=">,
HelpText<"Initial size of the linear memory">;
+def no_check_signatures: F<"no-check-signatures">,
+ HelpText<"Don't check function signatures">;
+
+def no_entry: F<"no-entry">,
+ HelpText<"Do not output any entry point">;
+
def max_memory: J<"max-memory=">,
HelpText<"Maximum size of the linear memory">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42627.131718.patch
Type: text/x-patch
Size: 3401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180128/67aa2544/attachment.bin>
More information about the llvm-commits
mailing list