aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/lib-util.ads
diff options
context:
space:
mode:
authorRobert Dewar <dewar@adacore.com>2010-06-14 13:01:07 +0000
committerArnaud Charlet <charlet@gcc.gnu.org>2010-06-14 15:01:07 +0200
commit7eaa7cdf7da806ba900237e34eb11fd580039da3 (patch)
tree098473a5e47938dcfa8b53ff687d42c7e5548626 /gcc/ada/lib-util.ads
parent3a13e78582d1be59cd9e5ecb24f8f1c355261648 (diff)
downloadgcc-7eaa7cdf7da806ba900237e34eb11fd580039da3.zip
gcc-7eaa7cdf7da806ba900237e34eb11fd580039da3.tar.gz
gcc-7eaa7cdf7da806ba900237e34eb11fd580039da3.tar.bz2
ali.adb (Scan_ALI): Implement reading and storing of N lines
2010-06-14 Robert Dewar <dewar@adacore.com> * ali.adb (Scan_ALI): Implement reading and storing of N lines (Known_ALI_Lines): Add entry for 'N' (notes) * ali.ads (Notes): New table to store Notes information * alloc.ads: Add entries for Notes table * lib-util.adb (Write_Info_Int): New procedure (Write_Info_Slit): New procedure (Write_Info_Uint): New procedure * lib-util.ads (Write_Info_Int): New procedure (Write_Info_Slit): New procedure (Write_Info_Uint): New procedure * lib-writ.adb (Write_Unit_Information): Output N (notes) lines * lib-writ.ads: Update documentation for N (Notes) lines * lib.adb (Store_Note): New procedure * lib.ads (Notes): New table (Store_Note): New procedure * sem_prag.adb: Call Store_Note for affected pragmas From-SVN: r160736
Diffstat (limited to 'gcc/ada/lib-util.ads')
-rw-r--r--gcc/ada/lib-util.ads13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ada/lib-util.ads b/gcc/ada/lib-util.ads
index a8326ac..b34bd27 100644
--- a/gcc/ada/lib-util.ads
+++ b/gcc/ada/lib-util.ads
@@ -23,6 +23,8 @@
-- --
------------------------------------------------------------------------------
+with Uintp; use Uintp;
+
package Lib.Util is
-- This package implements a buffered write of library information
@@ -52,6 +54,10 @@ package Lib.Util is
procedure Write_Info_Nat (N : Nat);
-- Adds image of N to Info_Buffer with no leading or trailing blanks
+ procedure Write_Info_Int (N : Int);
+ -- Adds image of N to Info_Buffer with no leading or trailing blanks. A
+ -- minus sign is prepended for negative values.
+
procedure Write_Info_Name (Name : Name_Id);
procedure Write_Info_Name (Name : File_Name_Type);
procedure Write_Info_Name (Name : Unit_Name_Type);
@@ -59,6 +65,9 @@ package Lib.Util is
-- name is written literally from the names table entry without modifying
-- the case, using simply Get_Name_String.
+ procedure Write_Info_Slit (S : String_Id);
+ -- Write string literal value in format required for L/N lines in ali file
+
procedure Write_Info_Str (Val : String);
-- Adds characters of Val to Info_Buffer surrounded by quotes
@@ -70,4 +79,8 @@ package Lib.Util is
procedure Write_Info_Terminate;
-- Terminate current info line and output lines built in Info_Buffer
+ procedure Write_Info_Uint (N : Uint);
+ -- Adds decimal image of N to Info_Buffer with no leading or trailing
+ -- blanks. A minus sign is prepended for negative values.
+
end Lib.Util;