From 9f409b1ac403ca27c8701851b033abe1c0535361 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Nov 2012 08:50:28 +0900 Subject: [PATCH] Rename make_dag to dag_create. --- tools/qfcc/include/dags.h | 4 +--- tools/qfcc/source/dags.c | 4 ++-- tools/qfcc/source/flow.c | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tools/qfcc/include/dags.h b/tools/qfcc/include/dags.h index 1db13f35c..51ff63edc 100644 --- a/tools/qfcc/include/dags.h +++ b/tools/qfcc/include/dags.h @@ -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); //@} diff --git a/tools/qfcc/source/dags.c b/tools/qfcc/source/dags.c index 723278db1..9515dc664 100644 --- a/tools/qfcc/source/dags.c +++ b/tools/qfcc/source/dags.c @@ -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; diff --git a/tools/qfcc/source/flow.c b/tools/qfcc/source/flow.c index 9f2a91304..b22ee6e55 100644 --- a/tools/qfcc/source/flow.c +++ b/tools/qfcc/source/flow.c @@ -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");