diff options
| author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-13 13:21:47 +0000 |
|---|---|---|
| committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-07-13 13:21:47 +0000 |
| commit | 504b51e7b185179f4f08601f711e37d4c237be8c (patch) | |
| tree | 7d58b5b4a02dc6f1de4d537cc33e9b1575010534 /gcc/ada/tbuild.adb | |
| parent | 5d56d161527602e4c735691579f126f06c9b476e (diff) | |
| download | ppe42-gcc-504b51e7b185179f4f08601f711e37d4c237be8c.tar.gz ppe42-gcc-504b51e7b185179f4f08601f711e37d4c237be8c.zip | |
2009-07-13 Ed Schonberg <schonberg@adacore.com>
* exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
and link it to the expression whose value it captures.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149585 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/tbuild.adb')
| -rw-r--r-- | gcc/ada/tbuild.adb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ada/tbuild.adb b/gcc/ada/tbuild.adb index 395a7137659..be882055af4 100644 --- a/gcc/ada/tbuild.adb +++ b/gcc/ada/tbuild.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2009, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -436,6 +436,18 @@ package body Tbuild is Strval => End_String); end Make_String_Literal; + function Make_Temporary + (Loc : Source_Ptr; + Id : Name_Id; + Related_Node : Node_Id := Empty) return Node_Id + is + Temp : Node_Id; + begin + Temp := Make_Defining_Identifier (Loc, Id); + Set_Related_Expression (Temp, Related_Node); + return Temp; + end Make_Temporary; + --------------------------- -- Make_Unsuppress_Block -- --------------------------- |

