* dwarf2read.c (die_needs_namespace): Also return 0 for

DW_TAG_subprogram.
This commit is contained in:
Tom Tromey 2010-03-15 20:49:53 +00:00
parent 178bead7ef
commit 1054b214e2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-03-15 Tom Tromey <tromey@redhat.com>
* dwarf2read.c (die_needs_namespace): Also return 0 for
DW_TAG_subprogram.
2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
PR c++/7936:

View File

@ -3241,7 +3241,8 @@ die_needs_namespace (struct die_info *die, struct dwarf2_cu *cu)
and have a mangled name. */
if (die->parent->tag == DW_TAG_lexical_block
|| die->parent->tag == DW_TAG_try_block
|| die->parent->tag == DW_TAG_catch_block)
|| die->parent->tag == DW_TAG_catch_block
|| die->parent->tag == DW_TAG_subprogram)
return 0;
return 1;