Commit 96d268c2 by Eric Botcazou Committed by Pierre-Marie de Rodat

[Ada] Repinfo: list the mechanism of functions only

2018-10-09  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* repinfo.adb: Remove with/use clause for Stand.
	(List_Mechanisms): List the mechanism of functions only.

From-SVN: r264965
parent 98ebcae8
2018-10-09 Eric Botcazou <ebotcazou@adacore.com>
* repinfo.adb: Remove with/use clause for Stand.
(List_Mechanisms): List the mechanism of functions only.
2018-10-09 Bob Duff <duff@adacore.com> 2018-10-09 Bob Duff <duff@adacore.com>
* doc/gnat_ugn/gnat_utility_programs.rst: Correct spelling of * doc/gnat_ugn/gnat_utility_programs.rst: Correct spelling of
......
...@@ -43,7 +43,6 @@ with Sem_Aux; use Sem_Aux; ...@@ -43,7 +43,6 @@ with Sem_Aux; use Sem_Aux;
with Sinfo; use Sinfo; with Sinfo; use Sinfo;
with Sinput; use Sinput; with Sinput; use Sinput;
with Snames; use Snames; with Snames; use Snames;
with Stand; use Stand;
with Stringt; use Stringt; with Stringt; use Stringt;
with Table; with Table;
with Uname; use Uname; with Uname; use Uname;
...@@ -956,7 +955,7 @@ package body Repinfo is ...@@ -956,7 +955,7 @@ package body Repinfo is
Write_Str (" ]"); Write_Str (" ]");
end if; end if;
if Etype (Ent) /= Standard_Void_Type then if Ekind (Ent) = E_Function then
if List_Representation_Info_To_JSON then if List_Representation_Info_To_JSON then
Write_Line (","); Write_Line (",");
Write_Str (" ""mechanism"": """); Write_Str (" ""mechanism"": """);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment