lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit instead of Get_Source_Uni...
authorYannick Moy <moy@adacore.com>
Fri, 30 Mar 2012 09:24:09 +0000 (09:24 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 30 Mar 2012 09:24:09 +0000 (11:24 +0200)
commit23e7bf6a4e4ac29e1914b2da55d460e12f0d2b8c
tree97aaa7e088533c7bdf4416f7e09ade6f1aadd88e
parentcdc96e3ea6420085948a45fef41bece7f4b6fc1b
lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit instead of Get_Source_Unit to get file for reference.

2012-03-30  Yannick Moy  <moy@adacore.com>

* lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit
instead of Get_Source_Unit to get file for reference.
(Traverse_Compilation_Unit): Do not add scopes for generic units.
* lib-xref.adb (Generate_Reference): Use Get_Code_Unit instead
of Get_Source_Unit to get file for reference.
* sem_ch12.adb (Analyze_Package_Instantiation): Enable
instantiation in Alfa mode.

From-SVN: r186002
gcc/ada/ChangeLog
gcc/ada/lib-xref-alfa.adb
gcc/ada/lib-xref.adb
gcc/ada/sem_ch12.adb