1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2005, 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 2, 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 COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- GNAT was originally developed by the GNAT team at New York University. --
23 -- Extensive contributions were provided by Ada Core Technologies Inc. --
25 ------------------------------------------------------------------------------
27 -- Routines used in Chapter 9 for the expansion of dispatching triggers in
28 -- select statements (Ada 2005: AI-345)
30 with Types
; use Types
;
34 function Build_Abort_Block
36 Abr_Blk_Ent
: Entity_Id
;
37 Cln_Blk_Ent
: Entity_Id
;
38 Blk
: Node_Id
) return Node_Id
;
43 -- when Abort_Signal => Abort_Undefer;
45 -- Abr_Blk_Ent is the name of the generated block, Cln_Blk_Ent is the name
46 -- of the encapsulated cleanup block, Blk is the actual block name.
50 Decls
: List_Id
) return Entity_Id
;
52 -- B : Boolean := False;
53 -- Append the object declaration to the list and return its defining
58 Decls
: List_Id
) return Entity_Id
;
60 -- C : Ada.Tags.Prim_Op_Kind;
61 -- Append the object declaration to the list and return its defining
64 function Build_Cleanup_Block
68 Clean_Ent
: Entity_Id
) return Node_Id
;
71 -- procedure _clean is
80 -- Blk_Ent is the name of the generated block, Stmts is the list of
81 -- encapsulated statements and Clean_Ent is the parameter to the
87 Obj
: Entity_Id
) return Entity_Id
;
89 -- K : Ada.Tags.Tagged_Kind :=
90 -- Ada.Tags.Get_Tagged_Kind (Ada.Tags.Tag (Obj));
91 -- where Obj is the pointer to a secondary table. Append the object
92 -- declaration to the list and return its defining identifier.
96 Decls
: List_Id
) return Entity_Id
;
99 -- Append the object declaration to the list and return its defining
102 function Build_S_Assignment
106 Call_Ent
: Entity_Id
) return Node_Id
;
108 -- S := Ada.Tags.Get_Offset_Index (
109 -- Ada.Tags.Tag (Obj), DT_Position (Call_Ent));
110 -- where Obj is the pointer to a secondary table, Call_Ent is the entity
111 -- of the dispatching call name. Return the generated assignment.