]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Move registering code for predefined primitives to Exp_Disp
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 17 May 2022 06:27:11 +0000 (08:27 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 2 Jun 2022 09:06:41 +0000 (09:06 +0000)
commita9f5f2cd642689ae58f27aa23dff5c8d7c7bb016
tree0c6e8612c2de53c447c5ed4f2f6a6d05a7cc5780
parent5a06e886ac86fd14e02eca0cf70360f1c2d9374f
[Ada] Move registering code for predefined primitives to Exp_Disp

This avoids making Expand_Interface_Thunk visible from the outside.

No functional changes.

gcc/ada/

* exp_ch6.adb (Freeze_Subprogram.Register_Predefined_DT_Entry): Move
procedure to...
* exp_disp.ads (Expand_Interface_Thunk): Move declaration to...
(Register_Predefined_Primitive): Declare.
* exp_disp.adb (Expand_Interface_Thunk): ...here.
(Register_Predefined_Primitive): ...here and change into a function
returning List_Id.
gcc/ada/exp_ch6.adb
gcc/ada/exp_disp.adb
gcc/ada/exp_disp.ads