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

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 12:50:21 PDT 2016


pcc created this revision.
pcc added reviewers: rafael, ruiu.
pcc added a subscriber: llvm-commits.

http://reviews.llvm.org/D18668

Files:
  ELF/Options.td

Index: ELF/Options.td
===================================================================
--- ELF/Options.td
+++ ELF/Options.td
@@ -192,16 +192,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.52265.patch
Type: text/x-patch
Size: 1256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160331/acc0c1b5/attachment.bin>


More information about the llvm-commits mailing list