Skip to content

Commit 7a0a093

Browse files
sbc100yuxuanchen1997
authored andcommitted
[lld][WebAssembly] Consolidate --fatal-warnings and --no-fatal-warnings options. NFC (#99374)
Summary: Also document defaults for boolean options. See https://reviews.llvm.org/D42859 Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60251622
1 parent 65701e3 commit 7a0a093

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lld/wasm/Options.td

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def compress_relocations: F<"compress-relocations">,
5858
HelpText<"Compress the relocation targets in the code section.">;
5959

6060
defm demangle: B<"demangle",
61-
"Demangle symbol names",
61+
"Demangle symbol names (default)",
6262
"Do not demangle symbol names">;
6363

6464
def emit_relocs: F<"emit-relocs">, HelpText<"Generate relocations in output">;
@@ -79,15 +79,16 @@ def entry: S<"entry">, MetaVarName<"<entry>">,
7979
defm error_limit:
8080
EEq<"error-limit", "Maximum number of errors to emit before stopping (0 = no limit)">;
8181

82-
def fatal_warnings: F<"fatal-warnings">,
83-
HelpText<"Treat warnings as errors">;
82+
defm fatal_warnings: B<"fatal-warnings",
83+
"Treat warnings as errors",
84+
"Do not treat warnings as errors (default)">;
8485

8586
defm gc_sections: B<"gc-sections",
86-
"Enable garbage collection of unused sections",
87+
"Enable garbage collection of unused sections (defualt)",
8788
"Disable garbage collection of unused sections">;
8889

8990
defm merge_data_segments: BB<"merge-data-segments",
90-
"Enable merging data segments",
91+
"Enable merging data segments (default)",
9192
"Disable merging data segments">;
9293

9394
def help: F<"help">, HelpText<"Print option help">;
@@ -104,8 +105,6 @@ defm mllvm: Eq<"mllvm", "Additional arguments to forward to LLVM's option proces
104105

105106
defm Map: Eq<"Map", "Print a link map to the specified file">;
106107

107-
def no_fatal_warnings: F<"no-fatal-warnings">;
108-
109108
def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
110109
HelpText<"Path to file to write output">;
111110

@@ -117,7 +116,7 @@ defm pie: B<"pie",
117116

118117
defm print_gc_sections: B<"print-gc-sections",
119118
"List removed unused sections",
120-
"Do not list removed unused sections">;
119+
"Do not list removed unused sections (default)">;
121120

122121
def print_map: F<"print-map">,
123122
HelpText<"Print a link map to the standard output">;

0 commit comments

Comments
 (0)