aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_aux.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 14:40:42 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-29 14:40:42 +0200
commit0382062b3b87859411e98bb2d3347020e7f45f48 (patch)
treea270d538296317d1c5acb6eda3c5aa21b378c4d1 /gcc/ada/sem_aux.ads
parent56386ab9004a24f057aff7aeaed15da1f025f7ff (diff)
downloadgcc-0382062b3b87859411e98bb2d3347020e7f45f48.zip
gcc-0382062b3b87859411e98bb2d3347020e7f45f48.tar.gz
gcc-0382062b3b87859411e98bb2d3347020e7f45f48.tar.bz2
[multiple changes]
2014-07-29 Hristian Kirtchev <kirtchev@adacore.com> * exp_ch7.adb (Build_BIP_Cleanup_Stmts): Remove formal parameter Obj_Id and update the comment on usage. Renamed Obj_Typ to Func_Typ and update all occurrences. (Find_Last_Init): Remove formal parameter Decl and update the comment on usage. Remove local constants Obj_Id and Obj_Typ. Remove local variables Init_Typ and Is_Conc. Remove the extraction of the initialization type. (Find_Last_Init_In_Block): Remove formal parameter Init_Typ and update the comment on usage. (Is_Init_Call): Remove formal parameter Init_Typ and update the comment on usage. Check whether the procedure call is an initialization procedure of either the object type or the initialization type. (Is_Init_Proc_Of): New routine. (Process_Object_Declaration): Obj_Id and Obj_Typ are now global to this routine. Add new variable Init_Typ. Add circuitry to extract the object type as well as the initialization type. 2014-07-29 Robert Dewar <dewar@adacore.com> * sem_case.adb: Minor reformatting. * sem_aux.ads: Minor reformatting. 2014-07-29 Ed Schonberg <schonberg@adacore.com> * sinfo.adb (Set_Else_Actions, Set_Then_Actions): Set parent pointer on these fields, even though they are semantic, because subsequent analysis and expansion of action nades may require exploring the tree, for example to locate a node to be wrapped when a function with controlled result is called. 2014-07-29 Claire Dross <dross@adacore.com> * sem_aux.adb (Get_Binary_Nkind): Use case on Name_Id instead of an intermediate string. (Get_Unary_Nkind): Use case on Name_Id instead of an intermediate string. 2014-07-29 Sergey Rybin <rybin@adacore.com frybin> * gnat_ugn.texi (gnatelim, gnatstub, gnatmetric): Add note about processing sources with preprocessor directives. From-SVN: r213155
Diffstat (limited to 'gcc/ada/sem_aux.ads')
-rw-r--r--gcc/ada/sem_aux.ads25
1 files changed, 12 insertions, 13 deletions
diff --git a/gcc/ada/sem_aux.ads b/gcc/ada/sem_aux.ads
index 4eaf1bf..c40ddab 100644
--- a/gcc/ada/sem_aux.ads
+++ b/gcc/ada/sem_aux.ads
@@ -152,6 +152,18 @@ package Sem_Aux is
-- Typ must be a tagged record type. This function returns the Entity for
-- the first _Tag field in the record type.
+ function Get_Binary_Nkind (Op : Entity_Id) return Node_Kind;
+ -- Op must be an entity with an Ekind of E_Operator. This function returns
+ -- the Nkind value that would be used to construct a binary operator node
+ -- referencing this entity. It is an error to call this function if Ekind
+ -- (Op) /= E_Operator.
+
+ function Get_Unary_Nkind (Op : Entity_Id) return Node_Kind;
+ -- Op must be an entity with an Ekind of E_Operator. This function returns
+ -- the Nkind value that would be used to construct a unary operator node
+ -- referencing this entity. It is an error to call this function if Ekind
+ -- (Op) /= E_Operator.
+
function Get_Rep_Item
(E : Entity_Id;
Nam : Name_Id;
@@ -386,17 +398,4 @@ package Sem_Aux is
-- package specification. Simplifies handling of child units, and better
-- than the old idiom: Specification (Unit_Declaration_Node (Pack_Id)).
- function Get_Binary_Nkind (Op : Entity_Id) return Node_Kind;
- -- Op must be an entity with an Ekind of E_Operator.
- -- This function returns the Nkind value that would
- -- be used to construct a binary operator node referencing
- -- this entity. It is an error to call this function
- -- if Ekind (Op) /= E_Operator.
-
- function Get_Unary_Nkind (Op : Entity_Id) return Node_Kind;
- -- Op must be an entity with an Ekind of E_Operator.
- -- This function returns the Nkind value that would
- -- be used to construct a unary operator node referencing
- -- this entity. It is an error to call this function
- -- if Ekind (Op) /= E_Operator.
end Sem_Aux;