mirror of git://gcc.gnu.org/git/gcc.git
dwarf2out.c (add_pubname): Add comment.
2012-06-29 Sterling Augustine <saugustine@google.com> * dwarf2out.c (add_pubname): Add comment. (add_pubtype): Fix indentation. (gen_enumeration_type_die): Likewise. From-SVN: r189084
This commit is contained in:
parent
271be5165c
commit
dfa15de2a2
|
|
@ -1,3 +1,9 @@
|
|||
2012-06-29 Sterling Augustine <saugustine@google.com>
|
||||
|
||||
* dwarf2out.c (add_pubname): Add comment.
|
||||
(add_pubtype): Fix indentation.
|
||||
(gen_enumeration_type_die): Likewise.
|
||||
|
||||
2012-06-29 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* tree-vect-generic.c (expand_vector_divmod): For even/odd
|
||||
|
|
|
|||
|
|
@ -8168,6 +8168,11 @@ add_pubname (tree decl, dw_die_ref die)
|
|||
if (!want_pubnames ())
|
||||
return;
|
||||
|
||||
/* Don't add items to the table when we expect that the consumer will have
|
||||
just read the enclosing die. For example, if the consumer is looking at a
|
||||
class_member, it will either be inside the class already, or will have just
|
||||
looked up the class to find the member. Either way, searching the class is
|
||||
faster than searching the index. */
|
||||
if ((TREE_PUBLIC (decl) && !is_class_die (die->die_parent))
|
||||
|| is_cu_die (die->die_parent) || is_namespace_die (die->die_parent))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue