Remove SymbolBody::PlaceholderKind.
authorRui Ueyama <ruiu@google.com>
Mon, 18 Jul 2016 01:35:00 +0000 (01:35 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 18 Jul 2016 01:35:00 +0000 (01:35 +0000)
commite33579072d8d8a97d029fc136314f642105c080a
tree28961a4f0e4347bcf5dd51f616bb7bb2eaf5d1c0
parentd6328526ba3f63d49dae9fe5317e30e61bacfaea
Remove SymbolBody::PlaceholderKind.

In the last patch for --trace-symbol, I introduced a new symbol type
PlaceholderKind and store it to SymVector storage. It made all code
that iterates over SymVector to recognize and skip PlaceholderKind
symbols. I found that that's annoying.

In this patch, I removed PlaceholderKind and stop storing them to SymVector.
Now the information whether a symbol is being watched by --trace-symbol
is stored to the Symtab hash table.

llvm-svn: 275747
lld/ELF/OutputSections.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp