diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2022-12-21 12:41:50 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-01-05 15:30:02 +0100 |
commit | 09e0175327d333360fbe45346c411a8bc7eee1f1 (patch) | |
tree | 000b1577a2df5815cb7c44be20377c0a1f284ace /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | 9ff806899bfa38ade0bddbdfb413ca3444425bcf (diff) | |
download | gcc-09e0175327d333360fbe45346c411a8bc7eee1f1.zip gcc-09e0175327d333360fbe45346c411a8bc7eee1f1.tar.gz gcc-09e0175327d333360fbe45346c411a8bc7eee1f1.tar.bz2 |
ada: Clean up interface handling in Expand_N_Object_Declaration
The code performing the expansion of objects with (class-wide) interface
type in Expand_N_Object_Declaration is fairly low-level, fiddling with the
homonym and entity chains, which is unnecessary.
gcc/ada/
* exp_ch3.adb (Expand_N_Object_Declaration): Rewrite the end of the
handling of objects with (class-wide) interface type by using the
same idiom as the other cases generating a renaming.
* exp_util.adb (Is_Displacement_Of_Object_Or_Function_Result): Tweak
pattern matching code and exclude special return objects.
(Requires_Cleanup_Actions): Adjust comment.
* exp_ch7.adb (Build_Finalizer): Likewise.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions