]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Rename "optional" node subtypes that allow Empty
authorYannick Moy <moy@adacore.com>
Mon, 12 Jul 2021 10:44:36 +0000 (12:44 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 21 Sep 2021 15:25:03 +0000 (15:25 +0000)
gcc/ada/

* gen_il-gen.adb (Put_Opt_Subtype): Add suffix.

gcc/ada/gen_il-gen.adb

index db2a5fc15b27d4bf0685162ac2386f684de60567..3bb98079b3089a7db29868bc26e239e3e353d5d1 100644 (file)
@@ -1503,7 +1503,7 @@ package body Gen_IL.Gen is
          procedure Put_Opt_Subtype (T : Node_Or_Entity_Type) is
          begin
             if Type_Table (T).Parent /= No_Type then
-               Put (S, "subtype Opt_" & Image (T) & " is" & LF);
+               Put (S, "subtype Opt_" & Id_Image (T) & " is" & LF);
                Increase_Indent (S, 2);
                Put (S, Id_Image (Root));
 
@@ -1513,8 +1513,8 @@ package body Gen_IL.Gen is
                if Enable_Assertions then
                   Put (S, " with Predicate =>" & LF);
                   Increase_Indent (S, 2);
-                  Put (S, "Opt_" & Image (T) & " = Empty or else" & LF);
-                  Put (S, "Opt_" & Image (T) & " in " & Id_Image (T));
+                  Put (S, "Opt_" & Id_Image (T) & " = Empty or else" & LF);
+                  Put (S, "Opt_" & Id_Image (T) & " in " & Id_Image (T));
                   Decrease_Indent (S, 2);
                end if;