[lld] 34ac7a7 - [lld/COFF] Ignore /LTCG, /LTCG:, /LTCGOUT:, /ILK: flags

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 27 06:16:40 PDT 2021


Author: Nico Weber
Date: 2021-08-27T09:13:30-04:00
New Revision: 34ac7a7ac1a382d3170ab5728b288018b06f98d1

URL: https://github.com/llvm/llvm-project/commit/34ac7a7ac1a382d3170ab5728b288018b06f98d1
DIFF: https://github.com/llvm/llvm-project/commit/34ac7a7ac1a382d3170ab5728b288018b06f98d1.diff

LOG: [lld/COFF] Ignore /LTCG, /LTCG:, /LTCGOUT:, /ILK: flags

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

Added: 
    

Modified: 
    lld/COFF/Options.td

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Options.td b/lld/COFF/Options.td
index 940d96c39e99f..387865faa35a0 100644
--- a/lld/COFF/Options.td
+++ b/lld/COFF/Options.td
@@ -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">;


        


More information about the llvm-commits mailing list