Support namespaces in DWARF 2 output.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Dec 2003 20:31:05 +0000 (20:31 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Dec 2003 20:31:05 +0000 (20:31 +0000)
commite89530cd2a6df48668a00f7c92582224da5e8872
tree8ba3c9c71f44a781dc9f262cfbf1d23b30e71223
parentc2e831643d8dc86d51a13566f930b73b680a7931
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74436 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c