[Ada] Use inline expansion of Image for enumeration types by default
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 11 Jan 2021 07:51:16 +0000 (08:51 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 5 May 2021 08:19:00 +0000 (04:19 -0400)
commit15de3bc0b494dae9bfdcc7af60974df0b31c3f0b
tree9ce657c18680f7a54e7ea060db09e42a6d95f101
parent3a46d0ed6e5b337bae638517ecbdfd84db750530
[Ada] Use inline expansion of Image for enumeration types by default

gcc/ada/

* debug.adb (d_x): Document new usage.
* exp_imgv.adb (Expand_User_Defined_Enumeration_Image): Add Typ
parameter and use it throughout the processing.
(Expand_Image_Attribute): Retrieve the underlying type of the
prefix and use the inline expansion for user-defined enumeration
types with a literal string by default.
gcc/ada/debug.adb
gcc/ada/exp_imgv.adb