-- and Per-Object Expressions" will suppress the insertion, and the
-- freeze node will be dropped on the floor.
- if Saved_Ghost_Config.Ghost_Mode = Ignore
+ if not CodePeer_Mode
+ and then Saved_Ghost_Config.Ghost_Mode = Ignore
and then Ghost_Config.Ghost_Mode /= Ignore
and then Present (Ghost_Config.Ignored_Ghost_Region)
then
-- user entities, as internally generated entitities might still need
-- to be expanded (e.g. those generated for types).
- if Present (Ghost_Config.Ignored_Ghost_Region)
+ if not CodePeer_Mode
+ and then Present (Ghost_Config.Ignored_Ghost_Region)
and then Comes_From_Source (Body_Id)
then
Expander_Active := False;
end if;
<<Leave>>
- if Present (Ghost_Config.Ignored_Ghost_Region) then
+ if not CodePeer_Mode
+ and then Present (Ghost_Config.Ignored_Ghost_Region)
+ then
Expander_Active := Saved_EA;
end if;
-- user entities, as internally generated entities might still need
-- to be expanded (e.g. those generated for types).
- if Present (Ghost_Config.Ignored_Ghost_Region)
+ if not CodePeer_Mode
+ and then Present (Ghost_Config.Ignored_Ghost_Region)
and then Comes_From_Source (Body_Id)
then
Expander_Active := False;
end if;
end if;
- if Present (Ghost_Config.Ignored_Ghost_Region) then
+ if not CodePeer_Mode and then
+ Present (Ghost_Config.Ignored_Ghost_Region)
+ then
Expander_Active := Saved_EA;
end if;