[lld] r249134 - Accept some options with both -- and -.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 07:21:24 PDT 2015


Author: rafael
Date: Fri Oct  2 09:21:24 2015
New Revision: 249134

URL: http://llvm.org/viewvc/llvm-project?rev=249134&view=rev
Log:
Accept some options with both -- and -.

This matches what both gold and bfd ld accept.

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=249134&r1=249133&r2=249134&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Fri Oct  2 09:21:24 2015
@@ -12,7 +12,7 @@ def L : Joined<["-"], "L">, MetaVarName<
 def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">,
   HelpText<"Allow multiple definitions">;
 
-def allow_shlib_undefined : Flag<["--"], "allow-shlib-undefined">;
+def allow_shlib_undefined : Flag<["--", "-"], "allow-shlib-undefined">;
 
 def discard_all : Flag<["-"], "discard-all">,
   HelpText<"Delete all local symbols">;
@@ -29,7 +29,7 @@ def dynamic_linker : Separate<["-"], "dy
 def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">,
   HelpText<"Name of entry point symbol">;
 
-def export_dynamic : Flag<["--"], "export-dynamic">,
+def export_dynamic : Flag<["--", "-"], "export-dynamic">,
   HelpText<"Put symbols in the dynamic symbol table">;
 
 def l : Joined<["-"], "l">, MetaVarName<"<libName>">,




More information about the llvm-commits mailing list