From 4e90b4210edc439bf749f495855e29f711d7e99e Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Fri, 9 Sep 2022 18:00:29 +0200 Subject: "rel" fields become "reloc" --- rv64/emit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rv64/emit.c') diff --git a/rv64/emit.c b/rv64/emit.c index a176c11..bb53c83 100644 --- a/rv64/emit.c +++ b/rv64/emit.c @@ -129,7 +129,7 @@ slot(int s, Fn *fn) static void emitaddr(Con *c, FILE *f) { - assert(c->rel == RelDef); + assert(c->reloc == RelDef); fputs(str(c->label), f); if (c->bits.i) fprintf(f, "+%"PRIi64, c->bits.i); @@ -229,7 +229,7 @@ loadaddr(Con *c, char *rn, FILE *f) { char off[32]; - if (c->rel == RelThr) { + if (c->reloc == RelThr) { if (c->bits.i) sprintf(off, "+%"PRIi64, c->bits.i); else @@ -279,7 +279,7 @@ fixmem(Ref *pr, Fn *fn, FILE *f) r = *pr; if (rtype(r) == RCon) { c = &fn->con[r.val]; - if (c->type == CAddr && c->rel == RelThr) { + if (c->type == CAddr && c->reloc == RelThr) { loadcon(c, T6, Kl, f); *pr = TMP(T6); } -- cgit 1.4.1