summaryrefslogtreecommitdiff
path: root/gcc/ada/tbuild.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/tbuild.ads')
-rw-r--r--gcc/ada/tbuild.ads15
1 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ada/tbuild.ads b/gcc/ada/tbuild.ads
index f6b02ccbb09..d968640c7d6 100644
--- a/gcc/ada/tbuild.ads
+++ b/gcc/ada/tbuild.ads
@@ -179,11 +179,16 @@ package Tbuild is
function Make_Temporary
(Loc : Source_Ptr;
Id : Character;
- Related_Node : Node_Id := Empty) return Node_Id;
- -- Create a defining identifier to capture the value of an expression
- -- or aggregate, and link it to the expression that it replaces, in
- -- order to provide better CodePeer reports. The defining identifier
- -- name is obtained by New_Internal_Name (Id).
+ Related_Node : Node_Id := Empty) return Entity_Id;
+ -- This function should be used for all cases where a temporary is
+ -- built with a name to be obtained by New_Internal_Name (here Id is
+ -- the character passed as the argument to New_Internal_Name). Loc
+ -- is the location for the Sloc value of the resulting Entity.
+ --
+ -- Related_Node is used when the identifier is capturing the value of
+ -- an expression (e.g. an aggregate). It should be set whenever possible
+ -- to point to the expression that is being captured. This is provided
+ -- to get better error messages, especially from CodePeer reports.
function Make_Unsuppress_Block
(Loc : Source_Ptr;