ada: Small cleanup in Expand_N_Object_Declaration
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 15 Nov 2022 07:53:46 +0000 (08:53 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 21 Nov 2022 10:10:33 +0000 (11:10 +0100)
commitdee004a9681049a55269dfae1506f17229be83c9
tree5d0a09219f3066b2a1a1f2429fbb7e6d67743bd3
parent76aac607c7eb53313cfd907a31cee6c5e4f550ae
ada: Small cleanup in Expand_N_Object_Declaration

This reuses a local constant more consistently, removes a duplicate of this
local constant, renames local variables, alphabetizes declarations, makes a
few consistency tweaks and adjusts a couple of comments.

No functional changes.

gcc/ada/

* exp_ch3.adb (Expand_N_Object_Declaration): Use Typ local
constant throughout, remove Ret_Obj_Typ local constant, rename
Ref_Type into Acc_Typ in a couple of places, remove a useless call
to Set_Etype, use a consistent checks suppression scheme, adjust
comments for the sake of consistencty and alphabetize some local
declarations.
* exp_ch6.adb (Expand_Simple_Function_Return): Remove a couple of
redundant local constants.
gcc/ada/exp_ch3.adb
gcc/ada/exp_ch6.adb