[lld/COFF] Ignore /LTCG, /LTCG:, /LTCGOUT:, /ILK: flags
authorNico Weber <thakis@chromium.org>
Fri, 27 Aug 2021 02:03:26 +0000 (22:03 -0400)
committerNico Weber <thakis@chromium.org>
Fri, 27 Aug 2021 13:13:30 +0000 (09:13 -0400)
We currently complain "could not open /LTCG: no such file or directory",
which isn't very useful.  We could emit a warning when we see this flag, but
just ignoring it seems fine.

Final missing part of PR38799.

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

lld/COFF/Options.td

index 940d96c..387865f 100644 (file)
@@ -279,6 +279,7 @@ def summary : F<"summary">;
 //==============================================================================
 
 def ignoreidl : F<"ignoreidl">;
+def ltcg : F<"ltcg">;
 def nologo : F<"nologo">;
 def throwingnew : F<"throwingnew">;
 def editandcontinue : F<"editandcontinue">;
@@ -287,6 +288,9 @@ def fastfail : F<"fastfail">;
 def delay : P_priv<"delay">;
 def errorreport : P_priv<"errorreport">;
 def idlout : P_priv<"idlout">;
+def ilk : P_priv<"ilk">;
+def ltcg_opt : P_priv<"ltcg">;
+def ltcgout : P_priv<"ltcgout">;
 def maxilksize : P_priv<"maxilksize">;
 def tlbid : P_priv<"tlbid">;
 def tlbout : P_priv<"tlbout">;