[PATCH] D44394: [WebAssembly] Use helper macro from ELF/Options.td to tidy. NFC

Nicholas Wilson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 06:19:32 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL327391: [WebAssembly] Use helper macro from ELF/Options.td to tidy. NFC (authored by ncw, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D44394?vs=138042&id=138170#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D44394

Files:
  lld/trunk/wasm/Options.td


Index: lld/trunk/wasm/Options.td
===================================================================
--- lld/trunk/wasm/Options.td
+++ lld/trunk/wasm/Options.td
@@ -36,8 +36,9 @@
 def fatal_warnings: F<"fatal-warnings">,
   HelpText<"Treat warnings as errors">;
 
-def gc_sections: F<"gc-sections">,
-  HelpText<"Enable garbage collection of unused sections">;
+defm gc_sections: B<"gc-sections",
+    "Enable garbage collection of unused sections",
+    "Disable garbage collection of unused sections">;
 
 def help: F<"help">, HelpText<"Print option help">;
 
@@ -57,17 +58,12 @@
 
 def no_fatal_warnings: F<"no-fatal-warnings">;
 
-def no_gc_sections: F<"no-gc-sections">,
-  HelpText<"Disable garbage collection of unused sections">;
-
-def no_print_gc_sections: F<"no-print-gc-sections">,
-  HelpText<"Do not list removed unused sections">;
-
 def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"<path>">,
   HelpText<"Path to file to write output">;
 
-def print_gc_sections: F<"print-gc-sections">,
-  HelpText<"List removed unused sections">;
+defm print_gc_sections: B<"print-gc-sections",
+    "List removed unused sections",
+    "Do not list removed unused sections">;
 
 def relocatable: F<"relocatable">, HelpText<"Create relocatable object file">;
 
@@ -100,8 +96,9 @@
 def allow_undefined_file_s: Separate<["-"], "allow-undefined-file">,
   Alias<allow_undefined_file>;
 
-def check_signatures: F<"check-signatures">,
-  HelpText<"Check function signatures">;
+defm check_signatures: B<"check-signatures",
+    "Check function signatures",
+    "Don't check function signatures">;
 
 defm export: Eq<"export">,
   HelpText<"Force a symbol to be exported">;
@@ -118,9 +115,6 @@
 def max_memory: J<"max-memory=">,
   HelpText<"Maximum 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">;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44394.138170.patch
Type: text/x-patch
Size: 1958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180313/a56fb6f5/attachment.bin>


More information about the llvm-commits mailing list