2 Copyright 2009 Free Software Foundation, Inc.
3 Contributed by CodeSourcery, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 3, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
27 typedef struct lto_file_struct
29 /* The name of the file. */
34 extern const char *resolution_file_name
;
37 extern void lto_main (int);
38 extern void lto_read_all_file_options (void);
41 extern lto_file
*lto_elf_file_open (const char *filename
, bool writable
);
42 extern void lto_elf_file_close (lto_file
*file
);
43 extern htab_t
lto_elf_build_section_table (lto_file
*file
);
44 extern void lto_elf_begin_section (const char *name
);
45 extern void lto_elf_append_data (const void *data
, size_t len
, void *block
);
46 extern void lto_elf_end_section (void);
47 extern lto_file
*lto_set_current_out_file (lto_file
*file
);
48 extern lto_file
*lto_get_current_out_file (void);
50 /* Hash table entry to hold the start offset and length of an LTO
51 section in a .o file. */
52 struct lto_section_slot