summaryrefslogtreecommitdiff
path: root/6/gen.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-05-09 16:49:09 -0700
committerOri Bernstein <ori@eigenstate.org>2015-05-09 16:49:09 -0700
commited8711e68e441e9884d734932373317834665833 (patch)
tree08a3f37550af1b6adb1ad912ee6df70fa6c1ceaf /6/gen.c
parentbd5fb6d0628831cde25f13e3fe461786d616a06e (diff)
downloadmc-ed8711e68e441e9884d734932373317834665833.tar.gz
Refactor code to add jump tables, and prepare to generate them.
Diffstat (limited to '6/gen.c')
-rw-r--r--6/gen.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/6/gen.c b/6/gen.c
index 76d15f5..285b2d2 100644
--- a/6/gen.c
+++ b/6/gen.c
@@ -24,22 +24,6 @@ static int islocal(Node *dcl)
return 1;
}
-static int nextlbl;
-char *genlocallblstr(char *buf, size_t sz)
-{
- if (asmsyntax == Plan9)
- snprintf(buf, 128, ".L%d<>", nextlbl++);
- else
- snprintf(buf, 128, ".L%d", nextlbl++);
- return buf;
-}
-
-char *genlblstr(char *buf, size_t sz)
-{
- snprintf(buf, 128, ".L%d", nextlbl++);
- return buf;
-}
-
/*
* For x86, the assembly names are generated as follows:
* local symbols: .name