]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Use function and not procedure UI_Image in pretty-printing
authorPiotr Trojanek <trojanek@adacore.com>
Fri, 8 Jan 2021 12:02:12 +0000 (13:02 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 4 May 2021 09:17:35 +0000 (05:17 -0400)
gcc/ada/

* pprint.adb (Expr_Name): Simplify with functional variant of
UI_Image.

gcc/ada/pprint.adb

index 6b8fd8d1e769e4d47533744c860626e7caf1e2c7..4e6f1deba255665066fb4ff6e0e1df96b058ec8f 100644 (file)
@@ -226,8 +226,7 @@ package body Pprint is
                end;
 
             when N_Integer_Literal =>
-               UI_Image (Intval (Expr));
-               return UI_Image_Buffer (1 .. UI_Image_Length);
+               return UI_Image (Intval (Expr));
 
             when N_Real_Literal =>
                return Real_Image (Realval (Expr));