aboutsummaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2022-03-14 10:58:55 +0100
committerQuentin Carbonneaux <[email protected]>2022-03-14 15:32:27 +0100
commit6ca9399ed6bec1a448aef79236670cd3daeb7daf (patch)
treea03e71383dee909f17d613589bec6082713aae23 /all.h
parent7a7a5f480312b997dcac0e4cc3befb502e54c836 (diff)
output symbol type and size
That is not available on osx so I tweaked the gas.c api a little to conditionally output the two directives.
Diffstat (limited to 'all.h')
-rw-r--r--all.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/all.h b/all.h
index f806c5b..7e1a8d3 100644
--- a/all.h
+++ b/all.h
@@ -523,9 +523,15 @@ void spill(Fn *);
void rega(Fn *);
/* gas.c */
+enum Asm {
+ Gasmacho,
+ Gaself,
+};
extern char *gasloc;
extern char *gassym;
+void gasinit(enum Asm);
void gasemitlnk(char *, Lnk *, char *, FILE *);
+void gasemitfntail(char *, FILE *);
void gasemitdat(Dat *, FILE *);
int gasstash(void *, int);
void gasemitfin(FILE *);