[Ada] Minor tweaks to dispatching support code
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 2 May 2022 08:07:38 +0000 (10:07 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Jun 2022 08:43:17 +0000 (08:43 +0000)
commitaf93b89d8a144f0008b22553ff59c0286a13ddd9
treee3a590ca6e31a2880983d0057661d63830e1b083
parenteb1091dd34ee60aa96a513c09ef1d70f40a6a38f
[Ada] Minor tweaks to dispatching support code

No functional changes.

gcc/ada/

* exp_disp.ads (Expand_Interface_Thunk): Change type of Prim.
* exp_disp.adb (Expand_Interface_Thunk): Declare Is_Predef_Op
earlier, do not initialize Iface_Formal, use No idiom and tweaks
comments.
(Register_Primitive): Declare L earlier and tweak comments.
* sem_disp.adb (Check_Dispatching_Operation): Move tests out of
loop.
gcc/ada/exp_disp.adb
gcc/ada/exp_disp.ads
gcc/ada/sem_disp.adb