diff options
author | Robert Dewar <dewar@adacore.com> | 2010-06-17 10:15:35 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-06-17 12:15:35 +0200 |
commit | c12beea07b1e3f88e7570f9fde7a6def03759f7f (patch) | |
tree | 0916061956041f2d10c70858f733f38dcf23dd4e /gcc/ada/tbuild.ads | |
parent | 191fcb3a9f04680935145a21a32f5ba30e3bea74 (diff) | |
download | gcc-c12beea07b1e3f88e7570f9fde7a6def03759f7f.zip gcc-c12beea07b1e3f88e7570f9fde7a6def03759f7f.tar.gz gcc-c12beea07b1e3f88e7570f9fde7a6def03759f7f.tar.bz2 |
exp_ch6.adb, [...]: Use Make_Temporary
2010-06-17 Robert Dewar <dewar@adacore.com>
* exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
* tbuild.ads (Make_Temporary): More comment updates
* tbuild.adb: Minor reformatting
From-SVN: r160894
Diffstat (limited to 'gcc/ada/tbuild.ads')
-rw-r--r-- | gcc/ada/tbuild.ads | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ada/tbuild.ads b/gcc/ada/tbuild.ads index d968640..2e82cc1 100644 --- a/gcc/ada/tbuild.ads +++ b/gcc/ada/tbuild.ads @@ -180,15 +180,19 @@ package Tbuild is (Loc : Source_Ptr; Id : Character; 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. + -- This function should be used for all cases where a defining identifier + -- is to be 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. Note that this + -- can be used for all kinds of temporary defining identifiers used in + -- expansion (objects, subtypes, functions etc). -- - -- 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. + -- Related_Node is used when the defining identifier is for an object that + -- captures 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, e.g. from CodePeer. + -- + -- Make_Temp_Id would probably be a better name for this function??? function Make_Unsuppress_Block (Loc : Source_Ptr; |