FreeBSD/contrib/gcc/cp/class.c
/* Fixup the inline methods and friends in TYPE now that TYPE is
   complete.  */
Fixup the inline methods and friends in TYPE now that TYPE is
complete.
Fixup the inline methods and friends in TYPE now that TYPE is complete .
static void
fixup_inline_methods (tree type)
{
  tree method = TYPE_METHODS (type);
  VEC(tree,gc) *friends;
  unsigned ix;
  if (method && TREE_CODE (method) == TREE_VEC)
    {
      if (TREE_VEC_ELT (method, 1))
	method = TREE_VEC_ELT (method, 1);
      else if (TREE_VEC_ELT (method, 0))
	method = TREE_VEC_ELT (method, 0);
      else
	method = TREE_VEC_ELT (method, 2);
    }
  for (; method; method = TREE_CHAIN (method))
    fixup_pending_inline (method);
  for (friends = CLASSTYPE_INLINE_FRIENDS (type), ix = 0;
       VEC_iterate (tree, friends, ix, method); ix++)
    fixup_pending_inline (method);
  CLASSTYPE_INLINE_FRIENDS (type) = NULL;
}
static void fixup_inline_methods ( tree type ) { tree method = TYPE_METHODS ( type ) ; VEC ( tree , gc ) * friends ; unsigned ix ; if ( method && TREE_CODE ( method ) == TREE_VEC ) { if ( TREE_VEC_ELT ( method , 1 ) ) method = TREE_VEC_ELT ( method , 1 ) ; else if ( TREE_VEC_ELT ( method , 0 ) ) method = TREE_VEC_ELT ( method , 0 ) ; else method = TREE_VEC_ELT ( method , 2 ) ; } for ( ; method ; method = TREE_CHAIN ( method ) ) fixup_pending_inline ( method ) ; for ( friends = CLASSTYPE_INLINE_FRIENDS ( type ) , ix = 0 ; VEC_iterate ( tree , friends , ix , method ) ; ix ++ ) fixup_pending_inline ( method ) ; CLASSTYPE_INLINE_FRIENDS ( type ) = NULL ; }
Fixup the inline methods and friends in TYPE now that TYPE is
complete.
Fixup the inline methods and friends in TYPE now that TYPE is complete .
/* Do inline member functions.  */ /* Do friends.  */