summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-10-08 12:12:51 -0400
committerOri Bernstein <ori@eigenstate.org>2014-10-08 12:12:51 -0400
commit29c6ded7a59b7cd8c74136957be151307c5df724 (patch)
tree96bdc8d1ecd458bda9362e8fdfe6cbaa22c40a30 /6/asm.h
parentfea683178d93f18a63046fd1dc6b032207cf0b43 (diff)
downloadmc-29c6ded7a59b7cd8c74136957be151307c5df724.tar.gz
Pull out typeinfo.c from simp.c
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/6/asm.h b/6/asm.h
index 98d424a..1639988 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -236,6 +236,8 @@ Rclass rclass(Loc *l);
/* useful functions */
size_t tysize(Type *t);
size_t size(Node *n);
+size_t tyoffset(Type *ty, Node *memb);
+size_t offset(Node *aggr, Node *memb);
int stacktype(Type *t);
int floattype(Type *t);
int stacknode(Node *n);