Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
cg_dfn.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DFN_BUSY   -1
#define DFN_NAN   0

Functions

void cg_dfn (Sym *root)

Define Documentation

#define DFN_BUSY   -1

Definition at line 8 of file cg_dfn.h.

#define DFN_NAN   0

Definition at line 9 of file cg_dfn.h.


Function Documentation

void cg_dfn ( Sym root)

Definition at line 271 of file cg_dfn.c.

{
  Arc *arc;

  DBG (DFNDEBUG, printf ("[dfn] dfn( ");
       print_name (parent);
       printf (")\n"));
  /*
   * If we're already numbered, no need to look any further:
   */
  if (is_numbered (parent))
    {
      return;
    }
  /*
   * If we're already busy, must be a cycle:
   */
  if (is_busy (parent))
    {
      find_cycle (parent);
      return;
    }
  pre_visit (parent);
  /*
   * Recursively visit children:
   */
  for (arc = parent->cg.children; arc; arc = arc->next_child)
    {
      cg_dfn (arc->child);
    }
  post_visit (parent);
}

Here is the call graph for this function:

Here is the caller graph for this function: