summaryrefslogtreecommitdiff
path: root/gcc/ada/lib-xref.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/lib-xref.ads')
-rw-r--r--gcc/ada/lib-xref.ads32
1 files changed, 10 insertions, 22 deletions
diff --git a/gcc/ada/lib-xref.ads b/gcc/ada/lib-xref.ads
index d4216396c9c..0baa896253e 100644
--- a/gcc/ada/lib-xref.ads
+++ b/gcc/ada/lib-xref.ads
@@ -26,9 +26,8 @@
-- This package contains for collecting and outputting cross-reference
-- information.
-with Einfo; use Einfo;
-with Lib.Util; use Lib.Util;
-with Put_SPARK_Xrefs;
+with Einfo; use Einfo;
+with SPARK_Xrefs;
package Lib.Xref is
@@ -640,26 +639,15 @@ package Lib.Xref is
-- This procedure is called to record a dereference. N is the location
-- of the dereference.
- procedure Collect_SPARK_Xrefs
- (Sdep_Table : Unit_Ref_Table;
- Num_Sdep : Nat);
- -- Collect SPARK cross-reference information from library units (for
- -- files and scopes) and from shared cross-references. Fill in the
- -- tables in library package called SPARK_Xrefs.
-
- procedure Output_SPARK_Xrefs is new Put_SPARK_Xrefs;
- -- Output SPARK cross-reference information to the ALI files, based on
- -- the information collected in the tables in library package called
- -- SPARK_Xrefs, and using routines in Lib.Util.
-
generic
- with procedure Process (N : Node_Id) is <>;
- procedure Traverse_Compilation_Unit
- (CU : Node_Id;
- Inside_Stubs : Boolean);
- -- Call Process on all declarations within compilation unit CU. If
- -- Inside_Stubs is True, then the body of stubs is also traversed.
- -- Generic declarations are ignored.
+ with procedure Process
+ (Index : Int;
+ Xref : SPARK_Xrefs.SPARK_Xref_Record);
+ procedure Iterate_SPARK_Xrefs;
+ -- Call Process on cross-references relevant to the SPARK backend with
+ -- parameter Xref holding the relevant subset of the xref entry and
+ -- Index holding the position in the original tables with references
+ -- (if positive) or dereferences (if negative).
end SPARK_Specific;