diff options
author | Ed Schonberg <schonberg@adacore.com> | 2008-08-20 16:28:08 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-08-20 16:28:08 +0200 |
commit | c3db4df1cb74f9290006f2d744c25b3f255c0274 (patch) | |
tree | 267c768e91d77d591b9e3628e889e6a53b0969f4 /gcc/ada/sem_util.adb | |
parent | 3ad80e57f8ba044c1217d50f2a03a67d2a20ec5d (diff) | |
download | gcc-c3db4df1cb74f9290006f2d744c25b3f255c0274.zip gcc-c3db4df1cb74f9290006f2d744c25b3f255c0274.tar.gz gcc-c3db4df1cb74f9290006f2d744c25b3f255c0274.tar.bz2 |
sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type and the full view is visible...
2008-08-20 Ed Schonberg <schonberg@adacore.com>
* sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
and the full view is visible, set flag on full view as well.
From-SVN: r139306
Diffstat (limited to 'gcc/ada/sem_util.adb')
-rw-r--r-- | gcc/ada/sem_util.adb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 5783d3c..7d8865c 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -8971,6 +8971,16 @@ package body Sem_Util is and then not Needs_Debug_Info (E) then Set_Debug_Info_Needed (E); + + -- For a private type, indicate that the full view also needs + -- debug information. + + if Is_Type (E) + and then Is_Private_Type (E) + and then Present (Full_View (E)) + then + Set_Debug_Info_Needed (Full_View (E)); + end if; end if; end Set_Debug_Info_Needed_If_Not_Set; |