Support namespaces in DWARF 2 output.
authorJason Merrill <jason@redhat.com>
Mon, 8 Dec 2003 20:31:05 +0000 (15:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 8 Dec 2003 20:31:05 +0000 (15:31 -0500)
commit66c78aa97aaa90b76b7532a30b67ef5b996d0408
tree8ba3c9c71f44a781dc9f262cfbf1d23b30e71223
parented36980c2256c731fd348fbe13c61a52bd7c32a2
Support namespaces in DWARF 2 output.

        * dwarf2out.c (gen_namespace_die): New function.
        (force_namespace_die, setup_namespace_context): New fns.
        (declare_in_namespace): New fn.
        (gen_decl_die): Call declare_in_namespace.  Handle namespaces.
        (dwarf2out_decl): Handle namespaces.
        (scope_die_for): Pass through a namespace scope.
        (class_scope_p): Rename to class_or_namespace_scope_p.
        (gen_subprogram_die, gen_variable_die): Adjust.
        (gen_struct_or_union_die): Always emit a declaration
        if context_die is a namespace.

Co-Authored-By: Daniel Berlin <dberlin@dberlin.org>
From-SVN: r74436
gcc/ChangeLog
gcc/dwarf2out.c