[lld] r256372 - Add a comment.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 24 01:50:22 PST 2015


Author: ruiu
Date: Thu Dec 24 03:50:22 2015
New Revision: 256372

URL: http://llvm.org/viewvc/llvm-project?rev=256372&view=rev
Log:
Add a comment.

Modified:
    lld/trunk/ELF/MarkLive.cpp

Modified: lld/trunk/ELF/MarkLive.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/MarkLive.cpp?rev=256372&r1=256371&r2=256372&view=diff
==============================================================================
--- lld/trunk/ELF/MarkLive.cpp (original)
+++ lld/trunk/ELF/MarkLive.cpp Thu Dec 24 03:50:22 2015
@@ -75,6 +75,9 @@ template <class ELFT> static bool isRese
   }
 }
 
+// This is the main function of the garbage collector.
+// Starting from GC-root sections, this function visits all reachable
+// sections to set their "Live" bits.
 template <class ELFT> void lld::elf2::markLive(SymbolTable<ELFT> *Symtab) {
   SmallVector<InputSection<ELFT> *, 256> Q;
 




More information about the llvm-commits mailing list