[PATCH] C++/DWARF : Add 'using' support
Devang Patel
dpatel@apple.com
Fri Dec 12 22:56:00 GMT 2003
On Dec 12, 2003, at 10:43 AM, Devang Patel wrote:
>>
>>> /* Otherwise we're emitting the primary DIE for this decl.
>>> */
>>> ! else if (debug_info_level > DINFO_LEVEL_TERSE)
>>> --- 11976,12005 ----
>>> /* Otherwise we're emitting the primary DIE for this decl.
>>> */
>>> ! else
>>> ! {
>>> ! if (debug_info_level > DINFO_LEVEL_TERSE)
>>
>> More gratuitous reformatting.
here I am including gen_subprogram_die() call inside else { ... }
because
dwarf2out_abstract_function() will do it for earlier cases.
--
Devang
*************** gen_decl_die (tree decl, dw_die_ref cont
*** 11959,11985 ****
}
/* Otherwise we're emitting the primary DIE for this decl. */
! else if (debug_info_level > DINFO_LEVEL_TERSE)
! {
! /* Before we describe the FUNCTION_DECL itself, make sure that we
! have described its return type. */
! gen_type_die (TREE_TYPE (TREE_TYPE (decl)), context_die);
!
! /* And its virtual context. */
! if (DECL_VINDEX (decl) != NULL_TREE)
! gen_type_die (DECL_CONTEXT (decl), context_die);
!
! /* And its containing type. */
! origin = decl_class_context (decl);
! if (origin != NULL_TREE)
! gen_type_die_for_member (origin, decl, context_die);
!
! /* And its containing namespace. */
! declare_in_namespace (decl, context_die);
}
-
- /* Now output a DIE to represent the function itself. */
- gen_subprogram_die (decl, context_die);
break;
case TYPE_DECL:
--- 11976,12005 ----
}
/* Otherwise we're emitting the primary DIE for this decl. */
! else
! {
! if (debug_info_level > DINFO_LEVEL_TERSE)
! {
! /* Before we describe the FUNCTION_DECL itself, make sure that
we
! have described its return type. */
! gen_type_die (TREE_TYPE (TREE_TYPE (decl)), context_die);
!
! /* And its virtual context. */
! if (DECL_VINDEX (decl) != NULL_TREE)
! gen_type_die (DECL_CONTEXT (decl), context_die);
!
! /* And its containing type. */
! origin = decl_class_context (decl);
! if (origin != NULL_TREE)
! gen_type_die_for_member (origin, decl, context_die);
!
! /* And its containing namespace. */
! declare_in_namespace (decl, context_die);
! }
!
! /* Now output a DIE to represent the function itself. */
! gen_subprogram_die (decl, context_die);
}
break;
case TYPE_DECL:
More information about the Gcc-patches
mailing list