mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
nuke pr.statement_linenums as it was redundant and the info never used anyway
This commit is contained in:
parent
1f8a1d613f
commit
4c8e157db2
4 changed files with 0 additions and 6 deletions
|
@ -51,7 +51,6 @@ typedef struct pr_info_s {
|
|||
struct strpool_s *strings;
|
||||
|
||||
dstatement_t *statements;
|
||||
int *statement_linenums;
|
||||
int num_statements;
|
||||
int statements_size;
|
||||
|
||||
|
|
|
@ -102,12 +102,9 @@ emit_statement (int sline, opcode_t *op, def_t *var_a, def_t *var_b,
|
|||
pr.statements_size += 16384;
|
||||
pr.statements = realloc (pr.statements,
|
||||
pr.statements_size * sizeof (dstatement_t));
|
||||
pr.statement_linenums = realloc (pr.statement_linenums,
|
||||
pr.statements_size * sizeof (int));
|
||||
}
|
||||
statement = &pr.statements[pr.num_statements];
|
||||
pr.num_statements++;
|
||||
pr.statement_linenums[statement - pr.statements] = pr.source_line;
|
||||
statement->op = op->opcode;
|
||||
statement->a = var_a ? var_a->ofs : 0;
|
||||
statement->b = var_b ? var_b->ofs : 0;
|
||||
|
|
|
@ -146,7 +146,6 @@ linker_begin (void)
|
|||
pr.num_statements = 1;
|
||||
pr.statements_size = 16384;
|
||||
pr.statements = calloc (pr.statements_size, sizeof (dstatement_t));
|
||||
pr.statement_linenums = calloc (pr.statements_size, sizeof (int));
|
||||
pr.strings = strpool_new ();
|
||||
pr.num_functions = 1;
|
||||
pr.near_data = new_defspace ();
|
||||
|
|
|
@ -137,7 +137,6 @@ InitData (void)
|
|||
pr.num_statements = 1;
|
||||
pr.statements_size = 16384;
|
||||
pr.statements = calloc (pr.statements_size, sizeof (dstatement_t));
|
||||
pr.statement_linenums = calloc (pr.statements_size, sizeof (int));
|
||||
pr.strings = strpool_new ();
|
||||
pr.num_functions = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue