@@ -4137,7 +4137,6 @@ package body Tree_Walk is
4137
4137
Unique_Name (Defining_Identifier (Param_Iter));
4138
4138
4139
4139
Param_Irep : constant Irep := New_Irep (I_Code_Parameter);
4140
- Param_Symbol : Symbol;
4141
4140
begin
4142
4141
if not (Nkind (Parameter_Type (Param_Iter)) in N_Has_Etype) then
4143
4142
Report_Unhandled_Node_Empty (N, " Do_Subprogram_Specification" ,
@@ -4156,15 +4155,10 @@ package body Tree_Walk is
4156
4155
Set_Base_Name (Param_Irep, Param_Name);
4157
4156
Append_Parameter (Param_List, Param_Irep);
4158
4157
-- Add the param to the symtab as well:
4159
- Param_Symbol.Name := Intern (Param_Name);
4160
- Param_Symbol.PrettyName := Param_Symbol.Name;
4161
- Param_Symbol.BaseName := Param_Symbol.Name;
4162
- Param_Symbol.SymType := Param_Type;
4163
- Param_Symbol.IsThreadLocal := True;
4164
- Param_Symbol.IsFileLocal := True;
4165
- Param_Symbol.IsLValue := True;
4166
- Param_Symbol.IsParameter := True;
4167
- Global_Symbol_Table.Insert (Param_Symbol.Name, Param_Symbol);
4158
+ New_Parameter_Symbol_Entry (Name_Id => Intern (Param_Name),
4159
+ BaseName => Param_Name,
4160
+ Symbol_Type => Param_Type,
4161
+ A_Symbol_Table => Global_Symbol_Table);
4168
4162
Next (Param_Iter);
4169
4163
end ;
4170
4164
end loop ;
0 commit comments