[lld] r257216 - Update comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 8 14:14:16 PST 2016


Author: ruiu
Date: Fri Jan  8 16:14:15 2016
New Revision: 257216

URL: http://llvm.org/viewvc/llvm-project?rev=257216&view=rev
Log:
Update comments.

Modified:
    lld/trunk/ELF/SymbolTable.h

Modified: lld/trunk/ELF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.h?rev=257216&r1=257215&r2=257216&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.h (original)
+++ lld/trunk/ELF/SymbolTable.h Fri Jan  8 16:14:15 2016
@@ -80,12 +80,16 @@ private:
   llvm::MapVector<StringRef, Symbol *> Symtab;
   llvm::BumpPtrAllocator Alloc;
 
+  // Comdat groups define "link once" sections. If two comdat groups have the
+  // same name, only one of them is linked, and the other is ignored. This set
+  // is used to uniquify them.
   llvm::DenseSet<StringRef> ComdatGroups;
 
-  // The writer needs to infer the machine type from the object files.
+  // The symbol table owns all object and DSO files.
   std::vector<std::unique_ptr<ObjectFile<ELFT>>> ObjectFiles;
-
   std::vector<std::unique_ptr<SharedFile<ELFT>>> SharedFiles;
+
+  // Set of .so files to not link the same shared object file more than once.
   llvm::DenseSet<StringRef> IncludedSoNames;
 };
 




More information about the llvm-commits mailing list