[Ada] Remove dead code for scope entity having E_Subprogram_Body kind
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 3 Feb 2022 14:11:26 +0000 (15:11 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 19 May 2022 14:05:27 +0000 (14:05 +0000)
commit20c932f30b5fb6110686378ad412bda2a5c6537e
tree7c2e6a69f1069d8d589bc85fea9c077f769a738f
parent16e02662c092c6e3087628ef0030e7daa2f71485
[Ada] Remove dead code for scope entity having E_Subprogram_Body kind

In GNAT AST the Scope field always points to the semantic scope (e.g.
subprogram) and never to syntactic scope (e.g. subprogram body).

Cleanup related to handling of circular access-to-record types.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity): Remove dead code
which expected Scope to return E_Subprogram_Body entity.
gcc/ada/gcc-interface/decl.cc