aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/lib-xref-alfa.adb
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2011-08-03 10:17:45 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2011-08-03 12:17:45 +0200
commit9fde638da6523b717ec7aca4f11ce8bf4f44dde7 (patch)
tree41abafb12cf236ecdac96d64bfd1687099cd01c1 /gcc/ada/lib-xref-alfa.adb
parent95eb8b69e6289ad1bc196915ba741f035817ce4b (diff)
downloadgcc-9fde638da6523b717ec7aca4f11ce8bf4f44dde7.zip
gcc-9fde638da6523b717ec7aca4f11ce8bf4f44dde7.tar.gz
gcc-9fde638da6523b717ec7aca4f11ce8bf4f44dde7.tar.bz2
prj-proc.adb, [...]: Minor reformatting.
2011-08-03 Robert Dewar <dewar@adacore.com> * prj-proc.adb, exp_util.ads, exp_ch9.adb, make.adb, prj-ext.adb, prj-ext.ads, alfa.ads, sem_ch4.adb, makeutl.adb, makeutl.ads, lib-xref-alfa.adb, sem_cat.adb, exp_dist.adb, get_alfa.adb, prj-env.adb, prj-env.ads, prj-tree.adb, alfa.ads: Minor reformatting. From-SVN: r177260
Diffstat (limited to 'gcc/ada/lib-xref-alfa.adb')
-rw-r--r--gcc/ada/lib-xref-alfa.adb8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/ada/lib-xref-alfa.adb b/gcc/ada/lib-xref-alfa.adb
index 860e80e..d325df5 100644
--- a/gcc/ada/lib-xref-alfa.adb
+++ b/gcc/ada/lib-xref-alfa.adb
@@ -238,6 +238,7 @@ package body ALFA is
for S in From .. ALFA_Scope_Table.Last loop
declare
E : Entity_Id renames ALFA_Scope_Table.Table (S).Scope_Entity;
+
begin
if Lib.Get_Source_Unit (E) = U then
ALFA_Scope_Table.Table (S).Scope_Num := Count;
@@ -819,9 +820,11 @@ package body ALFA is
for S in ALFA_Scope_Table.First .. ALFA_Scope_Table.Last loop
declare
Srec : ALFA_Scope_Record renames ALFA_Scope_Table.Table (S);
+
Body_Entity : Entity_Id;
Spec_Entity : Entity_Id;
Spec_Scope : Scope_Index;
+
begin
if Ekind (Srec.Scope_Entity) = E_Subprogram_Body then
Body_Entity := Parent (Parent (Srec.Scope_Entity));
@@ -850,7 +853,6 @@ package body ALFA is
end if;
end;
end loop;
-
end;
-- Generate cross reference ALFA information
@@ -864,8 +866,8 @@ package body ALFA is
function Entity_Hash (E : Entity_Id) return Entity_Hashed_Range is
begin
- return Entity_Hashed_Range
- (E mod (Entity_Id (Entity_Hashed_Range'Last) + 1));
+ return
+ Entity_Hashed_Range (E mod (Entity_Id (Entity_Hashed_Range'Last) + 1));
end Entity_Hash;
-----------------------------------------