summaryrefslogtreecommitdiffstats
path: root/gcc/ada/tbuild.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/tbuild.adb')
-rw-r--r--gcc/ada/tbuild.adb14
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 --
---------------------------
OpenPOWER on IntegriCloud