summaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 12:53:03 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 12:53:03 +0000
commitd28127131461c1716359c43cf398859f4628a21d (patch)
treecbd04fbbd93f8a27552d700f1b75927c1be21334 /gcc/ada/sem_util.ads
parent5eca86d92874b6ae58fb2271b99fbc54decf1567 (diff)
downloadgcc-d28127131461c1716359c43cf398859f4628a21d.tar.gz
2015-10-16 Bob Duff <duff@adacore.com>
* adadecode.h, adadecode.c (ada_demangle): Remove ada_demangle, no longer used. * a-except-2005.adb: Bring System.Traceback.Symbolic into the closure. 2015-10-16 Ed Schonberg <schonberg@adacore.com> * sem_util.adb, sem_util.ads (Get_Reference_Discriminant): Utility to locate the access discriminant that supports implicit dereference on a record type. (Is_OK_Variable_For_Out_Parameter): Reject other illegal uses of Implicit_Dereference on an access_to_constant when actual parameter is a rewritten variable or function call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228886 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r--gcc/ada/sem_util.ads4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index 6955094b7a2..70ffa636e9f 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -909,6 +909,10 @@ package Sem_Util is
-- literal or concatenation of string literals. An error is given for
-- any other form.
+ function Get_Reference_Discriminant (Typ : Entity_Id) return Entity_Id;
+ -- If Typ has Implicit_Dereference, return discriminant specified in
+ -- the corresponding aspect.
+
function Get_Referenced_Object (N : Node_Id) return Node_Id;
-- Given a node, return the renamed object if the node represents a renamed
-- object, otherwise return the node unchanged. The node may represent an