spark_xrefs.ads (Scope_Num): type refined to positive integers.
authorArnaud Charlet <charlet@adacore.com>
Wed, 22 Jun 2016 10:31:47 +0000 (10:31 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 22 Jun 2016 10:31:47 +0000 (12:31 +0200)
commit7ffbef99665102871af334c1e6d2c8f1e77fd6b7
tree49362ba0c5da270c0b28861ed83db581ae76eb3e
parent71b235999de097baad9739568b21f7d2714a306a
spark_xrefs.ads (Scope_Num): type refined to positive integers.

2016-06-22  Arnaud Charlet  <charlet@adacore.com>

* spark_xrefs.ads (Scope_Num): type refined to positive integers.
* lib-xref-spark_specific.adb (Detect_And_Add_SPARK_Scope):
moved into scope of Collect_SPARK_Xrefs.
(Add_SPARK_Scope): moved into scope of Collect_SPARK_Xrefs;
now uses Dspec and Scope_Id from Collect_SPARK_Xrefs.
(Collect_SPARK_Xrefs): refactored to avoid retraversing the list
of scopes.
(Traverse_Compilation_Unit): refactored as a generic procedure.
* types.ads (Unit_Number_Type): range refined.

From-SVN: r237690
gcc/ada/ChangeLog
gcc/ada/lib-xref-spark_specific.adb
gcc/ada/lib-xref.ads
gcc/ada/spark_xrefs.ads
gcc/ada/types.ads