[Ada] Replace low-level calls to Ekind with high-level calls to Is_Formal
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 31 Jul 2018 09:55:37 +0000 (09:55 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Tue, 31 Jul 2018 09:55:37 +0000 (09:55 +0000)
commitbb6a856baf496a1b6fb5e6aa481776cdf2a399ef
treec36484de29bda5fc90c59d60ba55334e6d9f2e3e
parente8723e74410de463cdba50e31489f7803387c9bd
[Ada] Replace low-level calls to Ekind with high-level calls to Is_Formal

High-level wrappers are easier to read. This change came up while reading
some code related to GNATprove, but then uniformly applied to the entire
frontend. For the few remaining membership tests that could be replaced
by Is_Formal it is not obvious whether the high-level routine makes the
code better.

2018-07-31  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* exp_aggr.adb, exp_ch4.adb, exp_ch6.adb, lib-xref.adb,
repinfo.adb, sem_ch9.adb: Minor replace Ekind membership tests
with a wrapper routine.

From-SVN: r263093
gcc/ada/ChangeLog
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch4.adb
gcc/ada/exp_ch6.adb
gcc/ada/lib-xref.adb
gcc/ada/repinfo.adb
gcc/ada/sem_ch9.adb