diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-07-18 13:04:34 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-07-18 13:04:34 +0200 |
commit | 4b03d946237dd6a6953dd1337043cd9eb8e7fbcb (patch) | |
tree | 1386817c0243f4f562148895d810773bea01a48e /gcc/ada/sem_aux.ads | |
parent | 4ac2bbbd057159e44cbe8d035eb0b6fc536bc40c (diff) | |
download | gcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.zip gcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.tar.gz gcc-4b03d946237dd6a6953dd1337043cd9eb8e7fbcb.tar.bz2 |
[multiple changes]
2014-07-18 Robert Dewar <dewar@adacore.com>
* exp_ch7.adb: Minor reformatting.
2014-07-18 Claire Dross <dross@adacore.com>
* sem_aux.ads (Get_Binary_Nkind): New function that returns
the Node_Kind value of an entity defining a binary operator.
(Get_Unary_Nkind): New function that returns the Node_Kind value
of an entity defining a unary operator.
2014-07-18 Pascal Obry <obry@adacore.com>
* sysdep.c: comment update.
* adaint.c (__gnat_fputwc): Use wchar_t on a limited set of
platforms where it is known to be supported.
2014-07-18 Thomas Quinot <quinot@adacore.com>
* sem_dist.adb (Process_Remote_AST_Declaration): Need
to set Fat_Type's Ekind in order to be able to use its
Corresponding_Remote_Type attribute.
From-SVN: r212815
Diffstat (limited to 'gcc/ada/sem_aux.ads')
-rw-r--r-- | gcc/ada/sem_aux.ads | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ada/sem_aux.ads b/gcc/ada/sem_aux.ads index 1fb9068..4eaf1bf 100644 --- a/gcc/ada/sem_aux.ads +++ b/gcc/ada/sem_aux.ads @@ -42,6 +42,7 @@ with Alloc; use Alloc; with Namet; use Namet; with Table; with Types; use Types; +with Sinfo; use Sinfo; package Sem_Aux is @@ -384,4 +385,18 @@ package Sem_Aux is -- Given an entity for a package or generic package, return corresponding -- 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; |