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) if (def->scope)
continue; continue;
if (def->type->type == ev_func) { if (def->type->type == ev_func) {
// df = &functions[numfunctions];
// numfunctions++;
} else if (def->type->type == ev_field) { } else if (def->type->type == ev_field) {
dd = &fields[numfielddefs]; dd = &fields[numfielddefs];
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; dstatement_t *st;
statref_t *ref; 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 = PR_NewStatref (st, 3);
ref->next = tree->labels[i]->e.label.refs; ref->next = tree->labels[i]->e.label.refs;
tree->labels[i]->e.label.refs = ref; tree->labels[i]->e.label.refs = ref;