Skip to content
Snippets Groups Projects
Commit e243bf23 authored by Yannick Moy's avatar Yannick Moy Committed by Pierre-Marie de Rodat
Browse files

[Ada] Minor tweak in pretty-printing of expressions

gcc/ada/

	* pprint.adb (Expression_Image): Special case for
	expression-with-actions.
parent 9b6a2de0
No related branches found
No related tags found
No related merge requests found
......@@ -682,7 +682,7 @@ package body Pprint is
end case;
end Expr_Name;
-- Start of processing for Expression_Name
-- Start of processing for Expression_Image
begin
if not From_Source then
......@@ -697,6 +697,12 @@ package body Pprint is
end;
end if;
-- Reach to the underlying expression for an expression-with-actions
if Nkind (Expr) = N_Expression_With_Actions then
return Expression_Image (Expression (Expr), Default);
end if;
-- Compute left (start) and right (end) slocs for the expression
-- Consider using Sinput.Sloc_Range instead, except that it does not
-- work properly currently???
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment