From 6b5680475761e22ec0fb46bc518b5e4e61e0c863 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Mon, 21 Jan 2013 22:17:54 +0000 Subject: [PATCH] assembler: Don't expose functions only used in main.c and make then static. Signed-off-by: Damien Lespiau --- assembler/gen4asm.h | 2 -- assembler/main.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h index 388cc756..8dd08b78 100644 --- a/assembler/gen4asm.h +++ b/assembler/gen4asm.h @@ -234,8 +234,6 @@ struct declared_register { }; struct declared_register *find_register(char *name); void insert_register(struct declared_register *reg); -void add_label(struct brw_program_instruction *instruction); -int label_to_addr(char *name, int start_addr); int yyparse(void); int yylex(void); 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;