-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdwarves_emit.h
40 lines (33 loc) · 1.3 KB
/
dwarves_emit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _DWARVES_EMIT_H_
#define _DWARVES_EMIT_H_ 1
/*
Copyright (C) 2006 Mandriva Conectiva S.A.
Copyright (C) 2006 Arnaldo Carvalho de Melo <[email protected]>
Copyright (C) 2007 Arnaldo Carvalho de Melo <[email protected]>
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
*/
#include <stdio.h>
#include "list.h"
struct cu;
struct ftype;
struct tag;
struct type;
struct type_emissions {
struct list_head definitions; /* struct type entries */
struct list_head fwd_decls; /* struct class entries */
};
void type_emissions__init(struct type_emissions *self);
int ftype__emit_definitions(struct ftype *self, struct cu *cu,
struct type_emissions *emissions, FILE *fp);
int type__emit_definitions(struct tag *self, struct cu *cu,
struct type_emissions *emissions, FILE *fp);
int type__emit_fwd_decl(struct type *ctype, const struct cu *cu,
struct type_emissions *emissions, FILE *fp);
void type__emit(struct tag *tag_self, struct cu *cu,
const char *prefix, const char *suffix, FILE *fp);
struct type *type_emissions__find_definition(const struct type_emissions *self,
const struct cu *cu,
const char *name);
#endif /* _DWARVES_EMIT_H_ */