* dwarf2out.c (modified_type_die): Use scope_die_for.
commit7fc5078f09631927ebeb31ad37afa00964ba2786
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 May 2012 16:19:02 +0000 (3 16:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 May 2012 16:19:02 +0000 (3 16:19 +0000)
tree202354d91f7ecdca36fe2d675450e45fdce487aa
parentd03a2c79dfbb6958e0e8ee8bf16650f12c1d9b0b
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187106 138bc75d-0d04-0410-961f-82ee72b054a4
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]