namet.ads, namet.adb (wn): Improve this debugging routine.
authorRobert Dewar <dewar@adacore.com>
Fri, 6 Apr 2007 09:24:39 +0000 (11:24 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 6 Apr 2007 09:24:39 +0000 (11:24 +0200)
commit3726d5d99a29d89a37d50c9597cbd9771247194b
tree8ae2d74d6461a8766909dc772a22d72f70b08188
parent0780eccc5da4e9c0f4e8492fab37e13459da6476
namet.ads, namet.adb (wn): Improve this debugging routine.

2007-04-06  Robert Dewar  <dewar@adacore.com>

* namet.ads, namet.adb (wn): Improve this debugging routine. Calling
it no longer destroys the contents of Name_Buffer or Name_Len and
non-standard and invalid names are handled better.
(Get_Decoded_Name_String): Improve performance by using
Name_Has_No_Encodings flag in the name table.
(Is_Valid_Name): New function to determine whether a Name_Id is valid.
Used for debugging printouts.

From-SVN: r123586
gcc/ada/namet.adb
gcc/ada/namet.ads