[MinGW] Ignore the --plugin and --plugin-opt option

GCC can use LLD with -fuse-ld=lld for MinGW these days, but by
default these options are passed to the linker (unless -fno-lto
is passed to the GCC driver).

Differential Revision: https://reviews.llvm.org/D57304

git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@352459 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/MinGW/Options.td b/MinGW/Options.td
index 948faa6..0cda244 100644
--- a/MinGW/Options.td
+++ b/MinGW/Options.td
@@ -78,3 +78,9 @@
 def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias<entry>;
 def alias_strip_s: Flag<["-"], "s">, Alias<strip_all>;
 def alias_strip_S: Flag<["-"], "S">, Alias<strip_debug>;
+
+// Ignored options
+def: S<"plugin">;
+def: J<"plugin=">;
+def: S<"plugin-opt">;
+def: J<"plugin-opt=">;