the partly done generic assemblerdumper
[libfirm] / ir / be / beasm_asm_gnu.h
1 #ifndef BEASM_ASM_GNU_H
2 #define BEASM_ASM_GNU H
3
4 #include "beasm_dump_globals.h"
5
6 //#include <libfirm/adt/obst.h>
7
8 #include <obstack.h>
9 #include <xmalloc.h>
10
11 #define obstack_chunk_alloc xmalloc
12 #define obstack_chunk_free free
13
14 typedef struct _gnuasm_privdata_t {
15         struct obstack common_obst;
16         struct obstack data_obst;
17         struct obstack rdata_obst;
18         struct obstack code_obst;
19 } gnuasm_privdata_t;
20
21
22 assembler_t *gnuasm_create_assembler ( void );
23 void gnuasm_dump ( assembler_t *assembler, FILE* out );
24 void gnuasm_delete_assembler ( assembler_t *assembler );
25
26 #endif