[Ada] Reuse Is_Rewrite_Substitution where possible
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 30 May 2018 08:57:33 +0000 (08:57 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 30 May 2018 08:57:33 +0000 (08:57 +0000)
commitdc67cfeaec73c486ae9018c75710feb3b94545bd
tree3f68194b9140df10b22f588ea834521fc4595e59
parent81c8f261d7c09b5dff140a604f0743f75827c647
[Ada] Reuse Is_Rewrite_Substitution where possible

Use a high-level Is_Rewrite_Substitution instead of a low-level inequality,
with the intention to improve the code easier to read. Semantics unaffected,
so no test provided.

2018-05-30  Piotr Trojanek  <trojanek@adacore.com>

gcc/ada/

* errout.adb, exp_aggr.adb, exp_ch7.adb, exp_util.adb, lib.adb,
sem_ch13.adb, sem_ch4.adb, sem_res.adb, sem_util.adb
(Has_Original_Node): Refactor to use Is_Rewrite_Substitution.

From-SVN: r260935
gcc/ada/ChangeLog
gcc/ada/errout.adb
gcc/ada/exp_aggr.adb
gcc/ada/exp_ch7.adb
gcc/ada/exp_util.adb
gcc/ada/lib.adb
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch4.adb
gcc/ada/sem_res.adb
gcc/ada/sem_util.adb