[lld] r256409 - Add comments.

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


Author: ruiu
Date: Fri Dec 25 00:55:39 2015
New Revision: 256409

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

Modified:
    lld/trunk/ELF/Symbols.h

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=256409&r1=256408&r2=256409&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Fri Dec 25 00:55:39 2015
@@ -123,8 +123,16 @@ protected:
   const unsigned SymbolKind : 8;
   unsigned IsWeak : 1;
   unsigned Visibility : 2;
+
+  // True if the symbol was used for linking and thus need to be
+  // added to the output file's symbol table. It is usually true,
+  // but if it is a shared symbol that were not referenced by anyone,
+  // it can be false.
   unsigned IsUsedInRegularObj : 1;
+
+  // If true, the symbol is added to .dynsym symbol table.
   unsigned IsUsedInDynamicReloc : 1;
+
   unsigned IsTls : 1;
   StringRef Name;
   Symbol *Backref = nullptr;




More information about the llvm-commits mailing list