summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--all.h2
-rw-r--r--amd64/sysv.c2
-rw-r--r--arm64/abi.c2
-rw-r--r--cfg.c4
-rw-r--r--parse.c2
-rw-r--r--rega.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/all.h b/all.h
index 39fda2a..e71547b 100644
--- a/all.h
+++ b/all.h
@@ -511,7 +511,7 @@ void err(char *, ...) __attribute__((noreturn));
 void elimsb(Fn *);
 
 /* cfg.c */
-Blk *blknew(void);
+Blk *newblk(void);
 void edgedel(Blk *, Blk **);
 void fillpreds(Fn *);
 void fillrpo(Fn *);
diff --git a/amd64/sysv.c b/amd64/sysv.c
index 48ac0a5..5b559c1 100644
--- a/amd64/sysv.c
+++ b/amd64/sysv.c
@@ -507,7 +507,7 @@ split(Fn *fn, Blk *b)
 	Blk *bn;
 
 	++fn->nblk;
-	bn = blknew();
+	bn = newblk();
 	bn->nins = &insb[NIns] - curi;
 	idup(&bn->ins, curi, bn->nins);
 	curi = &insb[NIns];
diff --git a/arm64/abi.c b/arm64/abi.c
index 9a29e3f..65b4bab 100644
--- a/arm64/abi.c
+++ b/arm64/abi.c
@@ -542,7 +542,7 @@ split(Fn *fn, Blk *b)
 	Blk *bn;
 
 	++fn->nblk;
-	bn = blknew();
+	bn = newblk();
 	bn->nins = &insb[NIns] - curi;
 	idup(&bn->ins, curi, bn->nins);
 	curi = &insb[NIns];
diff --git a/cfg.c b/cfg.c
index d12f6c8..406c307 100644
--- a/cfg.c
+++ b/cfg.c
@@ -1,7 +1,7 @@
 #include "all.h"
 
 Blk *
-blknew()
+newblk()
 {
 	static Blk z;
 	Blk *b;
@@ -299,7 +299,7 @@ simpljmp(Fn *fn)
 	Blk **uf; /* union-find */
 	Blk **p, *b, *ret;
 
-	ret = blknew();
+	ret = newblk();
 	ret->id = fn->nblk++;
 	ret->jmp.type = Jret0;
 	uf = emalloc(fn->nblk * sizeof uf[0]);
diff --git a/parse.c b/parse.c
index aed9427..649451f 100644
--- a/parse.c
+++ b/parse.c
@@ -555,7 +555,7 @@ findblk(char *name)
 	for (b=blkh[h]; b; b=b->dlink)
 		if (strcmp(b->name, name) == 0)
 			return b;
-	b = blknew();
+	b = newblk();
 	b->id = nblk++;
 	strcpy(b->name, name);
 	b->dlink = blkh[h];
diff --git a/rega.c b/rega.c
index 7af7fae..8e601c9 100644
--- a/rega.c
+++ b/rega.c
@@ -665,7 +665,7 @@ rega(Fn *fn)
 			pmgen();
 			if (curi == &insb[NIns])
 				continue;
-			b1 = blknew();
+			b1 = newblk();
 			b1->loop = (b->loop+s->loop) / 2;
 			b1->link = blist;
 			blist = b1;