+2019-07-11 Piotr Trojanek <trojanek@adacore.com>
+
+ * lib-writ.adb (Ensure_System_Dependency,
+ Up_To_Date_ALI_File_Exists, Write_ALI): Replace low-level access
+ to table with a high-level query.
+
2019-07-11 Piotr Trojanek <trojanek@adacore.com>
* checks.adb: Fix typo in comment.
-- Nothing to do if we already compiled System
for Unum in Units.First .. Last_Unit loop
- if Units.Table (Unum).Source_Index = System_Source_File_Index then
+ if Source_Index (Unum) = System_Source_File_Index then
return;
end if;
end loop;
Id := First_Sdep_Entry;
for J in 1 .. Num_Sdep loop
- Sind := Units.Table (Sdep_Table (J)).Source_Index;
+ Sind := Source_Index (Sdep_Table (J));
while Sdep.Table (Id).Sfile /= File_Name (Sind) loop
if Id = Sdep.Last then
for J in 1 .. Num_Sdep loop
Unum := Sdep_Table (J);
Units.Table (Unum).Dependency_Num := J;
- Sind := Units.Table (Unum).Source_Index;
+ Sind := Source_Index (Unum);
Write_Info_Initiate ('D');
Write_Info_Char (' ');