nuke pr.statement_linenums as it was redundant and the info never used anyway

This commit is contained in:
Bill Currie 2002-07-08 03:05:44 +00:00
parent 1f8a1d613f
commit 4c8e157db2
4 changed files with 0 additions and 6 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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 ();

View file

@ -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;