Since Assertion_Levels cannot be named after valid assertion names
we no longer need the policies to be matched by entity.
gcc/ada/ChangeLog:
* sem_prag.adb (Get_Applicable_Policy): Match assertion levels
by name.
or else P_Nam = Name_Assertion
or else (P_Nam = Name_Statement_Assertions
and then Is_Statement_Assertion (Nam))
- or else (Present (Level) and then Entity (P_Arg) = Level)
+ or else (Present (Level) and then P_Nam = Chars (Level))
then
return Chars (Get_Pragma_Arg (Last (Assocs)));
end if;