sem_util.adb (Copy_Node_With_Replacement): use Set_Comes_From_Source instead of direc...
authorArnaud Charlet <charlet@adacore.com>
Tue, 19 Apr 2016 12:24:29 +0000 (12:24 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 19 Apr 2016 12:24:29 +0000 (14:24 +0200)
commit4754d4e86afb974d0316a2b2793029f4407d762f
tree8f0e05f309c4e50b8151595d415edaab3e212dd7
parent87fd6836074fadc41833bf26686e99dbe574a638
sem_util.adb (Copy_Node_With_Replacement): use Set_Comes_From_Source instead of directly manipulating internals of the...

2016-04-19  Arnaud Charlet  <charlet@adacore.com>

* sem_util.adb (Copy_Node_With_Replacement):
use Set_Comes_From_Source instead of directly manipulating
internals of the node table.
* sem_util.adb (Within_Scope): refactored to remove duplicated code.
* sem_aux.adb (Get_Rep_Pragma,
Subprogram_Body_Entity, Subprogram_Spec): declare variables that
do not change as constants and initialize them in the declaration.
(Get_Rep_Pragma, Subprogram_Body_Entity, Subprogram_Spec): declare
variables that do not change as constants and initialize them
in the declaration.

From-SVN: r235193
gcc/ada/ChangeLog
gcc/ada/sem_aux.adb
gcc/ada/sem_util.adb