mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-23 07:46:15 +00:00
assembler: Don't expose functions only used in main.c
and make then static. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
c74c80c9a5
commit
6b56804757
@ -234,8 +234,6 @@ struct declared_register {
|
|||||||
};
|
};
|
||||||
struct declared_register *find_register(char *name);
|
struct declared_register *find_register(char *name);
|
||||||
void insert_register(struct declared_register *reg);
|
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 yyparse(void);
|
||||||
int yylex(void);
|
int yylex(void);
|
||||||
|
@ -155,7 +155,7 @@ void insert_register(struct declared_register *reg)
|
|||||||
insert_hash_item(declared_register_table, reg->name, 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;
|
struct label_item **p = &label_table;
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ void add_label(struct brw_program_instruction *i)
|
|||||||
|
|
||||||
/* Some assembly code have duplicated labels.
|
/* Some assembly code have duplicated labels.
|
||||||
Start from start_addr. Search as a loop. Return the first label found. */
|
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 */
|
/* return the first label just after start_addr, or the first label from the head */
|
||||||
struct label_item *p;
|
struct label_item *p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user