]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[GOLD] PowerPC move plt indx_ out of unordered map key
authorAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2017 00:40:00 +0000 (10:10 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 21 Jun 2017 13:15:15 +0000 (22:45 +0930)
commitbdab445c82ba93bc9aaad1ae974a3cf5c4aa8a26
tree7c523d1b80fae1cc62211ebb6f2e78c3f319260e
parent6e1816be66892d06e1a983f08407135fa7f7fc17
[GOLD] PowerPC move plt indx_ out of unordered map key

I was lazy when adding indx_ to Plt_stub_ent.  The field isn't part of
the key, so ought to be part of the mapped type.  Make it so.

* powerpc.cc (Plt_stub_key): Rename from Plt_stub_ent.  Remove indx_.
(Plt_stub_key_hash): Rename from Plt_stub_ent_hash.
(struct Plt_stub_ent): New.
(Plt_stub_entries): Map from Plt_stub_key to Plt_stub_ent.  Adjust
use throughout file.
gold/ChangeLog
gold/powerpc.cc