summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-01-15 19:00:03 -0500
committerOri Bernstein <ori@eigenstate.org>2014-01-15 19:00:03 -0500
commite1dd87b2721b7b42e252d83330798e73daf48a27 (patch)
tree4e9df0f37f0c2eee5e3c3cc5e7f858d143baf2af /6/asm.h
parent0f342c47db402a0b4ba021dab79414941180c1f0 (diff)
downloadmc-e1dd87b2721b7b42e252d83330798e73daf48a27.tar.gz
Fix writing constant struct literals
We had alignment and padding issues. Fixed.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/6/asm.h b/6/asm.h
index 9e27f42..1940fa7 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -227,3 +227,6 @@ int stacknode(Node *n);
int floatnode(Node *n);
void breakhere();
void dumpasm(Isel *s, FILE *fd);
+
+size_t tyalign(size_t sz, size_t eltsz);
+