Commit c3db4df1 by Ed Schonberg Committed by Arnaud Charlet

sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type and the…

sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type and the full view is visible...

2008-08-20  Ed Schonberg  <schonberg@adacore.com>

	* sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
	and the full view is visible, set flag on full view as well.

From-SVN: r139306
parent 3ad80e57
......@@ -8971,6 +8971,16 @@ package body Sem_Util is
and then not Needs_Debug_Info (E)
then
Set_Debug_Info_Needed (E);
-- For a private type, indicate that the full view also needs
-- debug information.
if Is_Type (E)
and then Is_Private_Type (E)
and then Present (Full_View (E))
then
Set_Debug_Info_Needed (Full_View (E));
end if;
end if;
end Set_Debug_Info_Needed_If_Not_Set;
......
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