[lld] r239266 - COFF: Remove dead code.

Rui Ueyama ruiu at google.com
Sun Jun 7 14:58:34 PDT 2015


Author: ruiu
Date: Sun Jun  7 16:58:34 2015
New Revision: 239266

URL: http://llvm.org/viewvc/llvm-project?rev=239266&view=rev
Log:
COFF: Remove dead code.

/include'ed symbols are already added to Config->GCRoots.
Marking symbols twice doesn't have any effect.

Modified:
    lld/trunk/COFF/Driver.cpp

Modified: lld/trunk/COFF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Driver.cpp?rev=239266&r1=239265&r2=239266&view=diff
==============================================================================
--- lld/trunk/COFF/Driver.cpp (original)
+++ lld/trunk/COFF/Driver.cpp Sun Jun  7 16:58:34 2015
@@ -386,10 +386,6 @@ bool LinkerDriver::link(int Argc, const
     return false;
   }
 
-  // /include option takes precedence over garbage collection.
-  for (auto *Arg : Args->filtered(OPT_incl))
-    Symtab.find(Arg->getValue())->markLive();
-
   // Windows specific -- if no /subsystem is given, we need to infer
   // that from entry point name.
   if (Config->Subsystem == IMAGE_SUBSYSTEM_UNKNOWN) {





More information about the llvm-commits mailing list