aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-05-09 11:31:21 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-05-09 11:31:21 +0000
commit1f0e2688af26e66efa9db498d6db01760832fee3 (patch)
treeeeac43e380253c397f4d41b3351fb14eedbb53f9 /gcc/ada/gcc-interface/utils.c
parent1be0899d946246574f623e95a2252e743d4a3188 (diff)
downloadgcc-1f0e2688af26e66efa9db498d6db01760832fee3.zip
gcc-1f0e2688af26e66efa9db498d6db01760832fee3.tar.gz
gcc-1f0e2688af26e66efa9db498d6db01760832fee3.tar.bz2
utils.c (gnat_write_global_declarations): Use type_decl method instead of global_decl for TYPE_DECLs.
* gcc-interface/utils.c (gnat_write_global_declarations): Use type_decl method instead of global_decl for TYPE_DECLs. From-SVN: r222967
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
-rw-r--r--gcc/ada/gcc-interface/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index 170aa4a..5968857 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -5211,7 +5211,7 @@ gnat_write_global_declarations (void)
finalized in the right context. */
FOR_EACH_VEC_SAFE_ELT (global_decls, i, iter)
if (TREE_CODE (iter) == TYPE_DECL && !DECL_IGNORED_P (iter))
- debug_hooks->global_decl (iter);
+ debug_hooks->type_decl (iter, false);
/* Proceed to optimize and emit assembly. */
symtab->finalize_compilation_unit ();