summaryrefslogtreecommitdiff
path: root/assembler/main.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-01-21 22:17:54 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:38 +0000
commit6b5680475761e22ec0fb46bc518b5e4e61e0c863 (patch)
tree61c5880fd86eefed4e68706c11a341d40a54b1ac /assembler/main.c
parentc74c80c9a5d2d84c55ba373d2d56ada635467ee6 (diff)
assembler: Don't expose functions only used in main.c
and make then static. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler/main.c')
-rw-r--r--assembler/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/assembler/main.c b/assembler/main.c
index 85f07905..176835b7 100644
--- a/assembler/main.c
+++ b/assembler/main.c
@@ -155,7 +155,7 @@ void insert_register(struct declared_register *reg)
insert_hash_item(declared_register_table, reg->name, reg);
}
-void add_label(struct brw_program_instruction *i)
+static void add_label(struct brw_program_instruction *i)
{
struct label_item **p = &label_table;
@@ -170,7 +170,7 @@ void add_label(struct brw_program_instruction *i)
/* Some assembly code have duplicated labels.
Start from start_addr. Search as a loop. Return the first label found. */
-int label_to_addr(char *name, int start_addr)
+static int label_to_addr(char *name, int start_addr)
{
/* return the first label just after start_addr, or the first label from the head */
struct label_item *p;