]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Simplify data structures for overloaded interpretations
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 8 Dec 2020 21:34:29 +0000 (22:34 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 28 Apr 2021 09:38:15 +0000 (05:38 -0400)
commit894376c44d94df54727b591292e5965cfa35001b
tree64b3ff2d954d1e1eb24e876bd6d86cf3df2fde9d
parentf358e5c17720c744e227da0c121c1ae168e5c533
[Ada] Simplify data structures for overloaded interpretations

gcc/ada/

* sem_type.ads (Write_Interp_Ref): Removed; no longer needed.
* sem_type.adb (Headers): Removed; now the hash table is
directly in the Interp_Map alone.
(Interp_Map): Now an instance of the GNAT.HTable.Simple_HTable.
(Last_Overloaded): New variable to emulate Interp_Map.Last.
(Add_One_Interp): Adapt to new data structure.
(Get_First_Interp): Likewise.
(Hash): Likewise.
(Init_Interp_Tables): Likewise.
(New_Interps): Likewise.
(Save_Interps): Likewise; handle O_N variable like in
Get_First_Interp.
(Write_Interp_Ref): Removed; no longer needed.
gcc/ada/sem_type.adb
gcc/ada/sem_type.ads