1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- S P A R K _ X R E F S --
9 -- Copyright (C) 2011-2018, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
24 ------------------------------------------------------------------------------
26 -- This package defines data structures used to expose frontend
27 -- cross-references to the SPARK backend.
29 with Types
; use Types
;
31 package SPARK_Xrefs
is
33 type SPARK_Xref_Record
is record
37 Ref_Scope
: Entity_Id
;
38 -- Scope where the reference occurs
41 -- Indicates type of the reference, using code used in ALI file:
46 -- This type holds a subset of the frontend xref entry that is needed by
53 Name_Of_Heap_Variable
: constant String := "__HEAP";
54 -- Name of special variable used in effects to denote reads and writes
55 -- through explicit dereference.
57 Heap
: Entity_Id
:= Empty
;
58 -- A special entity which denotes the heap object; it should be considered
59 -- constant, but needs to be variable, because it can only be initialized
60 -- after the node tables are created.
67 -- Debug routine to dump internal SPARK cross-reference tables. This is a
68 -- raw format dump showing exactly what the tables contain.