prepare functions and pr_globals for relocatability

This commit is contained in:
Bill Currie 2002-06-05 05:39:20 +00:00
parent 935f1e8c5e
commit 32215b1296
2 changed files with 1 additions and 3 deletions

View file

@ -142,8 +142,6 @@ WriteData (int crc)
if (def->scope)
continue;
if (def->type->type == ev_func) {
// df = &functions[numfunctions];
// numfunctions++;
} else if (def->type->type == ev_field) {
dd = &fields[numfielddefs];
numfielddefs++;

View file

@ -323,7 +323,7 @@ build_switch (expr_t *sw, case_node_t *tree, int op, expr_t *sw_val,
dstatement_t *st;
statref_t *ref;
st = (dstatement_t *) &pr_globals[G_INT (def->ofs) + i];
st = (dstatement_t *) (G_INT (def->ofs) + i);
ref = PR_NewStatref (st, 3);
ref->next = tree->labels[i]->e.label.refs;
tree->labels[i]->e.label.refs = ref;