Simplify PltSection.
authorRui Ueyama <ruiu@google.com>
Fri, 22 Mar 2019 21:17:25 +0000 (21:17 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 22 Mar 2019 21:17:25 +0000 (21:17 +0000)
commitd2e0ed7755671039f75f90803793d44e93b3ef56
treea3078317776d24e4698da1e1835a13a1e0fe2878
parent8316ea42992f5707ac63d633aa6ebc8ab73970e8
Simplify PltSection.

Previously, `Entries` contains pairs of symbols and their indices.
The indices are always 0, x, 2x, 3x, ..., where x is the size of
relocation entry. We didn't have to store that values because we can
compute them when we consume them.

llvm-svn: 356812
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h