From 7d332f5eb7220cd75d5be53875ec99d55caa81df Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 25 Dec 2015 06:55:39 +0000 Subject: [PATCH] Add comments. llvm-svn: 256409 --- lld/ELF/Symbols.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h index e2a543c08cf5..8556452dbb13 100644 --- a/lld/ELF/Symbols.h +++ b/lld/ELF/Symbols.h @@ -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;