[lld] r324262 - Allow both -no-omagic and --no-omagic.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 11:14:03 PST 2018
Author: ruiu
Date: Mon Feb 5 11:14:03 2018
New Revision: 324262
URL: http://llvm.org/viewvc/llvm-project?rev=324262&view=rev
Log:
Allow both -no-omagic and --no-omagic.
Any multi-character option that doesn't start with "o" should be
allowed to start both with "-" and "--".
Modified:
lld/trunk/ELF/Options.td
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=324262&r1=324261&r2=324262&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Mon Feb 5 11:14:03 2018
@@ -208,7 +208,7 @@ def no_dynamic_linker: F<"no-dynamic-lin
def noinhibit_exec: F<"noinhibit-exec">,
HelpText<"Retain the executable output file whenever it is still usable">;
-def no_omagic: Flag<["--"], "no-omagic">, MetaVarName<"<magic>">,
+def no_omagic: F<"no-omagic">, MetaVarName<"<magic>">,
HelpText<"Do not set the text data sections to be writable">;
def no_rosegment: F<"no-rosegment">,
More information about the llvm-commits
mailing list