aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch3.adb
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-02-05 16:26:04 +0100
committerMarc Poulhiès <poulhies@adacore.com>2024-05-13 10:03:35 +0200
commit5de075393402281c0fd9d0081a9d753c8793891e (patch)
treecc3442bb818c09ee55dee3228c2e7165dae30131 /gcc/ada/exp_ch3.adb
parent51b84f23b551d12e237290d3fe6311ffbe7bdc0c (diff)
downloadgcc-5de075393402281c0fd9d0081a9d753c8793891e.zip
gcc-5de075393402281c0fd9d0081a9d753c8793891e.tar.gz
gcc-5de075393402281c0fd9d0081a9d753c8793891e.tar.bz2
ada: Move Init_Proc_Level_Formal from Exp_Ch3 to Exp_Util
This makes it possible to remove clauses from the Accessibility package. gcc/ada/ * accessibility.adb: Remove clauses for Exp_Ch3. * exp_ch3.ads (Init_Proc_Level_Formal): Move declaration to... * exp_ch3.adb (Init_Proc_Level_Formal): Move body to... * exp_util.ads (Init_Proc_Level_Formal): ...here. (Inside_Init_Proc): Alphabetize. * exp_util.adb (Init_Proc_Level_Formal): ...here.
Diffstat (limited to 'gcc/ada/exp_ch3.adb')
-rw-r--r--gcc/ada/exp_ch3.adb25
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/ada/exp_ch3.adb b/gcc/ada/exp_ch3.adb
index f998937..2477a22 100644
--- a/gcc/ada/exp_ch3.adb
+++ b/gcc/ada/exp_ch3.adb
@@ -1462,31 +1462,6 @@ package body Exp_Ch3 is
return Agg;
end Build_Equivalent_Record_Aggregate;
- ----------------------------
- -- Init_Proc_Level_Formal --
- ----------------------------
-
- function Init_Proc_Level_Formal (Proc : Entity_Id) return Entity_Id is
- Form : Entity_Id;
- begin
- -- Move through the formals of the initialization procedure Proc to find
- -- the extra accessibility level parameter associated with the object
- -- being initialized.
-
- Form := First_Formal (Proc);
- while Present (Form) loop
- if Chars (Form) = Name_uInit_Level then
- return Form;
- end if;
-
- Next_Formal (Form);
- end loop;
-
- -- No formal was found, return Empty
-
- return Empty;
- end Init_Proc_Level_Formal;
-
-------------------------------
-- Build_Initialization_Call --
-------------------------------