Changeset 474


Ignore:
Timestamp:
Jul 29, 2003, 8:52:45 PM (22 years ago)
Author:
bird
Message:

More preformace stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/stabshll.c

    • Property cvs2svn:cvs-rev changed from 1.17 to 1.18
    r473 r474  
    20612061                   * TODO: verify that this doesn't really work with overloaded constructors and fix it.
    20622062                   */
    2063                   if (   !(tf->flags & MEMBER_STATIC)
    2064                       && *((unsigned*)tf->name) == ('_' | '_' << 8 | 'c' << 16 | 'o' << 24)
    2065                       && *((unsigned*)tf->name) == ('_' | '_' << 8 | 'b' << 16 | 'a' << 24)
    2066                          )
     2063                  if (!(tf->flags & MEMBER_STATIC))
    20672064                    {
    2068                       if (!strcmp(tf->name, "__comp_ctor") || !strcmp(tf->name, "__base_ctor"))
     2065                      /* using the strpool is much faster! */
     2066                      static const char *pszCompCtor, *pszBaseCtor, *pszCompDtor, *pszBaseDtor = NULL;
     2067                      if (!pszBaseDtor)
     2068                        {
     2069                          pszCompCtor = strpool_addn(str_pool, "__comp_ctor", 11);
     2070                          pszBaseCtor = strpool_addn(str_pool, "__base_ctor", 11);
     2071                          pszCompDtor = strpool_addn(str_pool, "__comp_dtor", 11);
     2072                          pszBaseDtor = strpool_addn(str_pool, "__base_dtor", 11);
     2073                        }
     2074
     2075                      if (tf->name == pszCompCtor || tf->name == pszBaseCtor)
    20692076                          tf->flags |= MEMBER_CTOR;
    2070                       else if (!strcmp(tf->name, "__comp_dtor") || !strcmp(tf->name, "__base_dtor"))
     2077                      else if (tf->name == pszCompDtor || tf->name == pszBaseDtor)
    20712078                          tf->flags |= MEMBER_DTOR;
    20722079                    }
Note: See TracChangeset for help on using the changeset viewer.