[PATCH] D18668: ELF: Add more variants of ignored flags.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 14:23:53 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL265058: ELF: Add more variants of ignored flags. (authored by pcc).

Changed prior to commit:
  http://reviews.llvm.org/D18668?vs=52265&id=52290#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18668

Files:
  lld/trunk/ELF/Options.td

Index: lld/trunk/ELF/Options.td
===================================================================
--- lld/trunk/ELF/Options.td
+++ lld/trunk/ELF/Options.td
@@ -195,16 +195,19 @@
 // just ignore the option on lld side as it's easier. In fact, the linker could
 // be called 'ld' and understanding which linker is used would require parsing of
 // --version output.
-def plugin : Separate<["-"], "plugin">;
-def plugin_opt : Joined<["-"], "plugin-opt=">;
+def plugin : Separate<["--", "-"], "plugin">;
+def plugin_eq : Joined<["--", "-"], "plugin=">;
+def plugin_opt : Separate<["--", "-"], "plugin-opt">;
+def plugin_opt_eq : Joined<["--", "-"], "plugin-opt=">;
 
 // Options listed below are silently ignored for now for compatibility.
 def fatal_warnings : Flag<["--"], "fatal-warnings">;
 def no_add_needed : Flag<["--"], "no-add-needed">;
 def no_fatal_warnings : Flag<["--"], "no-fatal-warnings">;
 def no_warn_common : Flag<["--", "-"], "no-warn-common">;
 def no_warn_mismatch : Flag<["--"], "no-warn-mismatch">;
 def rpath_link : Separate<["--", "-"], "rpath-link">;
+def rpath_link_eq : Joined<["--", "-"], "rpath-link=">;
 def version_script : Separate<["--"], "version-script">;
 def warn_shared_textrel : Flag<["--"], "warn-shared-textrel">;
 def G : Separate<["-"], "G">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18668.52290.patch
Type: text/x-patch
Size: 1286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160331/1357d642/attachment.bin>


More information about the llvm-commits mailing list