| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#ifndef LTO_H |
| 22 |
#define LTO_H |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
struct lto_file |
| 27 |
{ |
| 28 |
|
| 29 |
const char *filename; |
| 30 |
|
| 31 |
off_t offset; |
| 32 |
}; |
| 33 |
|
| 34 |
|
| 35 |
extern const char *resolution_file_name; |
| 36 |
|
| 37 |
|
| 38 |
extern tree lto_eh_personality (void); |
| 39 |
extern void lto_main (void); |
| 40 |
extern void lto_read_all_file_options (void); |
| 41 |
|
| 42 |
|
| 43 |
extern lto_file *lto_obj_file_open (const char *filename, bool writable); |
| 44 |
extern void lto_obj_file_close (lto_file *file); |
| 45 |
struct lto_section_list; |
| 46 |
extern htab_t lto_obj_build_section_table (lto_file *file, struct lto_section_list *list); |
| 47 |
extern htab_t lto_obj_create_section_hash_table (void); |
| 48 |
extern void lto_obj_begin_section (const char *name); |
| 49 |
extern void lto_obj_append_data (const void *data, size_t len, void *block); |
| 50 |
extern void lto_obj_end_section (void); |
| 51 |
extern lto_file *lto_set_current_out_file (lto_file *file); |
| 52 |
extern lto_file *lto_get_current_out_file (void); |
| 53 |
|
| 54 |
extern int lto_link_dump_id, decl_merge_dump_id, partition_dump_id; |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
struct lto_section_slot |
| 59 |
{ |
| 60 |
const char *name; |
| 61 |
off_t start; |
| 62 |
size_t len; |
| 63 |
struct lto_section_slot *next; |
| 64 |
}; |
| 65 |
|
| 66 |
|
| 67 |
struct lto_section_list |
| 68 |
{ |
| 69 |
struct lto_section_slot *first, *last; |
| 70 |
}; |
| 71 |
|
| 72 |
extern unsigned int lto_option_lang_mask (void); |
| 73 |
|
| 74 |
#endif |