[PATCH] D39885: Disable GC and ICF when /debug is present
    Peter Collingbourne via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Nov 10 14:50:14 PST 2017
    
    
  
pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.
LGTM, thanks.
================
Comment at: lld/COFF/Driver.cpp:900
+  // Handle /opt.
+  bool DoGC = !Args.hasArg(OPT_debug);
+  unsigned ICFLevel = 1; // 0: off, 1: limited, 2: on
----------------
Nit: I don't think you need this local variable, you could use `Config->DoGC` directly.
https://reviews.llvm.org/D39885
    
    
More information about the llvm-commits
mailing list