[Ada] Add "optional" node subtypes that allow Empty
authorBob Duff <duff@adacore.com>
Thu, 8 Jul 2021 17:26:53 +0000 (13:26 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 21 Sep 2021 15:25:02 +0000 (15:25 +0000)
commitbd413702ce3106573655490668bdf8dcd6a680c9
tree3a48faf51478316110c194b1784009be50739715
parent0df911d9056437a79cf40fc643c49fced56574bd
[Ada] Add "optional" node subtypes that allow Empty

gcc/ada/

* gen_il-gen.adb (Put_Opt_Subtype): Print out subtypes of the
form:
subtype Opt_N_Declaration is
Node_Id with Predicate =>
Opt_N_Declaration = Empty or else
Opt_N_Declaration in N_Declaration_Id;
One for each node or entity type, with the predicate allowing
Empty.
* atree.adb (Parent, Set_Parent): Remove unnecessary "Atree.".
gcc/ada/atree.adb
gcc/ada/gen_il-gen.adb