summaryrefslogtreecommitdiff
path: root/mi/cfg.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-11-04 00:06:59 -0800
committerOri Bernstein <ori@eigenstate.org>2015-11-06 00:39:35 -0800
commit2a27b2d8ac101e17e300a2e25421fc25c403b05b (patch)
tree00876c35ca526b7acc9858db9a51ea162535ad54 /mi/cfg.c
parentda4798f000d99dd326a542758da83ad04be72f86 (diff)
downloadmc-2a27b2d8ac101e17e300a2e25421fc25c403b05b.tar.gz
Rewrite pattern matching code.
Much cleaner, and more efficient.
Diffstat (limited to 'mi/cfg.c')
-rw-r--r--mi/cfg.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mi/cfg.c b/mi/cfg.c
index de6ddb1..39b59fe 100644
--- a/mi/cfg.c
+++ b/mi/cfg.c
@@ -26,13 +26,6 @@ static Bb *mkbb(Cfg *cfg)
return bb;
}
-static char *lblstr(Node *n)
-{
- assert(exprop(n) == Olit);
- assert(n->expr.args[0]->type == Nlit);
- assert(n->expr.args[0]->lit.littype == Llbl);
- return n->expr.args[0]->lit.lblval;
-}
static void strlabel(Cfg *cfg, char *lbl, Bb *bb)
{