comparison gcc/lto/lto.h @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents
children b7f97abdc517
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
1 /* LTO declarations.
2 Copyright 2009 Free Software Foundation, Inc.
3 Contributed by CodeSourcery, Inc.
4
5 This file is part of GCC.
6
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
10 version.
11
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
15 for more details.
16
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/>. */
20
21 #ifndef LTO_H
22 #define LTO_H
23
24 #include "hashtab.h"
25
26 /* A file. */
27 typedef struct lto_file_struct
28 {
29 /* The name of the file. */
30 const char *filename;
31 off_t offset;
32 } lto_file;
33
34 /* In lto-lang.c */
35 extern const char *resolution_file_name;
36
37 /* In lto.c */
38 extern void lto_main (int);
39 extern void lto_read_all_file_options (void);
40
41 /* In lto-elf.c */
42 extern lto_file *lto_elf_file_open (const char *filename, bool writable);
43 extern void lto_elf_file_close (lto_file *file);
44 extern htab_t lto_elf_build_section_table (lto_file *file);
45 extern void lto_elf_begin_section (const char *name);
46 extern void lto_elf_append_data (const void *data, size_t len, void *block);
47 extern void lto_elf_end_section (void);
48 extern lto_file *lto_set_current_out_file (lto_file *file);
49 extern lto_file *lto_get_current_out_file (void);
50
51 /* Hash table entry to hold the start offset and length of an LTO
52 section in a .o file. */
53 struct lto_section_slot
54 {
55 const char *name;
56 intptr_t start;
57 size_t len;
58 };
59
60 int64_t lto_parse_hex (const char *p);
61
62 #endif /* LTO_H */