summaryrefslogtreecommitdiff
path: root/opt/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'opt/cfg.c')
-rw-r--r--opt/cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/opt/cfg.c b/opt/cfg.c
index 92e3d50..ec09216 100644
--- a/opt/cfg.c
+++ b/opt/cfg.c
@@ -14,7 +14,7 @@
#include "opt.h"
-Bb *mkbb(Cfg *cfg)
+static Bb *mkbb(Cfg *cfg)
{
static int nextbbid = 0;
Bb *bb;
@@ -27,13 +27,13 @@ Bb *mkbb(Cfg *cfg)
return bb;
}
-void label(Cfg *cfg, Node *lbl, Bb *bb)
+static void label(Cfg *cfg, Node *lbl, Bb *bb)
{
htput(cfg->lblmap, lbl->lbl.name, bb);
lappend(&bb->lbls, &bb->nlbls, lbl->lbl.name);
}
-int addnode(Cfg *cfg, Bb *bb, Node *n)
+static int addnode(Cfg *cfg, Bb *bb, Node *n)
{
switch (exprop(n)) {
case Ojmp: