[PATCH] D108799: [lld/COFF] Ignore /LTCG and /LTCG:FOO flags

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 26 19:05:06 PDT 2021


thakis created this revision.
thakis added reviewers: lld, aganea.
Herald added a subscriber: dang.
thakis requested review of this revision.

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.


https://reviews.llvm.org/D108799

Files:
  lld/COFF/Options.td


Index: lld/COFF/Options.td
===================================================================
--- lld/COFF/Options.td
+++ lld/COFF/Options.td
@@ -279,6 +279,7 @@
 //==============================================================================
 
 def ignoreidl : F<"ignoreidl">;
+def ltcg : F<"ltcg">;
 def nologo : F<"nologo">;
 def throwingnew : F<"throwingnew">;
 def editandcontinue : F<"editandcontinue">;
@@ -287,6 +288,7 @@
 def delay : P_priv<"delay">;
 def errorreport : P_priv<"errorreport">;
 def idlout : P_priv<"idlout">;
+def ltcg_opt : P_priv<"ltcg">;
 def maxilksize : P_priv<"maxilksize">;
 def tlbid : P_priv<"tlbid">;
 def tlbout : P_priv<"tlbout">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108799.369019.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210827/f6776ef6/attachment.bin>


More information about the llvm-commits mailing list