summary refs log tree commit diff
path: root/rv64/emit.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2022-09-09 18:00:29 +0200
committerQuentin Carbonneaux <quentin@c9x.me>2022-10-08 21:48:47 +0200
commit4e90b4210edc439bf749f495855e29f711d7e99e (patch)
tree9f3b3e137f98fa65bf1c61e235d32afce4f24f7f /rv64/emit.c
parent2e38c86af6c91bfb23dfb06b517a00c11fd4c1b3 (diff)
downloadroux-4e90b4210edc439bf749f495855e29f711d7e99e.tar.gz
"rel" fields become "reloc"
Diffstat (limited to 'rv64/emit.c')
-rw-r--r--rv64/emit.c6
1 files changed, 3 insertions, 3 deletions
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);
 		}