Rename make_dag to dag_create.

This commit is contained in:
Bill Currie 2012-11-07 08:50:28 +09:00
parent 16410332af
commit 9f409b1ac4
3 changed files with 4 additions and 6 deletions

View file

@ -73,14 +73,12 @@ struct dstring_s;
void print_dag (struct dstring_s *dstr, dagnode_t *node);
struct sblock_s;
daglabel_t *operand_label (struct operand_s *op);
/** Make a dag for a single basic block.
\param block The basic block for which the dag will be created.
\return The dag representing the basic block.
*/
dagnode_t *make_dag (const struct sblock_s *block);
dagnode_t *dag_create (const struct sblock_s *block);
//@}

View file

@ -121,7 +121,7 @@ opcode_label (const char *opcode)
return label;
}
daglabel_t *
static daglabel_t *
operand_label (operand_t *op)
{
operand_t *o;
@ -264,7 +264,7 @@ daglabel_detatch (daglabel_t *l)
}
dagnode_t *
make_dag (const sblock_t *block)
dag_create (const sblock_t *block)
{
statement_t *s;
dagnode_t *dagnodes = 0;

View file

@ -243,7 +243,7 @@ flow_build_vars (function_t *func)
for (sblock = func->sblock; sblock; sblock = sblock->next) {
for (s = sblock->statements; s; s = s->next)
func->statements[s->number] = s;
sblock->dag = make_dag (sblock);
sblock->dag = dag_create (sblock);
}
if (options.block_dot.dags)
dump_sblock (func->sblock, "dags");