diff options
Diffstat (limited to 'src/prc1/ws.c')
| -rw-r--r-- | src/prc1/ws.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/prc1/ws.c b/src/prc1/ws.c index 59e1aec..94014ce 100644 --- a/src/prc1/ws.c +++ b/src/prc1/ws.c @@ -4,23 +4,6 @@ #include "parse.h" #include "storage.h" -static int wspush(const struct stentry *e, struct cgen *c) -{ - const struct type *t = e->t; - - printf("%%%s_ =l alloc%zu %zu\n", e->tk->s, t->align, t->sz); - return 0; -} - -int ws_cgen(const struct storage *s, struct cgen *c) -{ - for (size_t i = 0; i < s->nentries; i++) - if (wspush(&s->entries[i], c)) - return -1; - - return 0; -} - int ws(const struct lex *l, struct prv *p) { struct fn *fn = fn_cur(p); |
