aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-01-08 22:14:15 +0000
committerRui Ueyama <ruiu@google.com>2016-01-08 22:14:15 +0000
commit1ce16ae64fd1d9c4c408a9b3737b379d67a5a5da (patch)
treeba5411964533176cf8198bedc66a7317b5c8dd58
parentd7d541c541d0305fc628b3a38de30be1d3121ce1 (diff)
Update comments.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@257216 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--ELF/SymbolTable.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ELF/SymbolTable.h b/ELF/SymbolTable.h
index 659c98421..38caa903e 100644
--- a/ELF/SymbolTable.h
+++ b/ELF/SymbolTable.h
@@ -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;
};