Changeset 2248 for trunk


Ignore:
Timestamp:
Jul 15, 2005, 6:53:20 AM (20 years ago)
Author:
bird
Message:

show attributes too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/cp/dump.c

    • Property cvs2svn:cvs-rev changed from 1.1.1.2 to 1.2
    r2247 r2248  
    207207}
    208208
     209#if 1 /* bird hacking */
     210static void cp_dump_attributes (dump_info_p di, tree t)
     211{
     212  tree attr = NULL;
     213  if (DECL_P (t))
     214    attr = DECL_ATTRIBUTES (t);
     215  else if (TYPE_P (t))
     216    attr = TYPE_ATTRIBUTES (t);
     217  else
     218    return;
     219  if (lookup_attribute ("optlink", attr))
     220    dump_string (di, "optlink");
     221  if (lookup_attribute ("stdcall", attr))
     222    dump_string (di, "stdcall");
     223  if (lookup_attribute ("cdecl", attr))
     224    dump_string (di, "cdecl");
     225  if (lookup_attribute ("system", attr))
     226    dump_string (di, "system");
     227  if (lookup_attribute ("dllexport", attr))
     228    dump_string (di, "dllexport");
     229  if (lookup_attribute ("dllimport", attr))
     230    dump_string (di, "dllimport");
     231}
     232#endif /* bird hacking */
     233
    209234int
    210235cp_dump_tree (dump_info, t)
     
    223248        dump_string (di, language_to_string (DECL_LANGUAGE (t), 0));
    224249    }
     250
     251#if 1 /* bird hacking */
     252  cp_dump_attributes (di, t);
     253#endif
    225254
    226255  switch (code)
Note: See TracChangeset for help on using the changeset viewer.