dwarf2out.c (modified_type_die): Use scope_die_for.
authorJason Merrill <jason@redhat.com>
Thu, 3 May 2012 16:19:02 +0000 (12:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 3 May 2012 16:19:02 +0000 (12:19 -0400)
commit0fd0752e83525409addcdb904c67dc535bd5c1d1
tree202354d91f7ecdca36fe2d675450e45fdce487aa
parent63aaf27c3bf9ac859f5db5ae9774e2751695a2f9
dwarf2out.c (modified_type_die): Use scope_die_for.

* dwarf2out.c (modified_type_die): Use scope_die_for.
(gen_type_die_with_usage, dwarf2out_finish): Likewise.
(uses_local_type_r, uses_local_type): New.
(scope_die_for): Keep a type that uses a local type in local scope.
Use get_context_die for namespace and type scope.

From-SVN: r187106
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/debug/dwarf2/namespace-2.C [new file with mode: 0644]