diff options
author | Jan Hubicka <jh@suse.cz> | 2011-05-02 14:37:13 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-05-02 12:37:13 +0000 |
commit | bc0fe8cb2a6ed9db82b4380e9d4b1837e97ea526 (patch) | |
tree | 2680cf7b12422f82aa3a8f4513c70dc9d5e3692d /gcc/lto-section-in.c | |
parent | d12530b543a23510d7bdc3dcd9e0d58ffe18b418 (diff) | |
download | gcc-bc0fe8cb2a6ed9db82b4380e9d4b1837e97ea526.zip gcc-bc0fe8cb2a6ed9db82b4380e9d4b1837e97ea526.tar.gz gcc-bc0fe8cb2a6ed9db82b4380e9d4b1837e97ea526.tar.bz2 |
lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
* lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
(lto_section_overrun): New.
* lto-section-out.c (append_block): Rename to ...
(lto_append_block): ... this one; export.
(lto_output_1_stream): Move lto lto-streamer.h
(lto_output_data_stream): Update.
* lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
(lto_output_1_stream, lto_input_1_unsigned): Turn into inline
functions.
From-SVN: r173247
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r-- | gcc/lto-section-in.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index e7928c4..4b88fb1 100644 --- a/gcc/lto-section-in.c +++ b/gcc/lto-section-in.c @@ -62,16 +62,6 @@ const char *lto_section_name[LTO_N_SECTION_TYPES] = "inline" }; -unsigned char -lto_input_1_unsigned (struct lto_input_block *ib) -{ - if (ib->p >= ib->len) - internal_error ("bytecode stream: trying to read %d bytes " - "after the end of the input buffer", ib->p - ib->len); - - return (ib->data[ib->p++]); -} - /* Read an ULEB128 Number of IB. */ @@ -486,3 +476,13 @@ lto_get_function_in_decl_state (struct lto_file_decl_data *file_data, slot = htab_find_slot (file_data->function_decl_states, &temp, NO_INSERT); return slot? ((struct lto_in_decl_state*) *slot) : NULL; } + + +/* Report read pass end of the section. */ + +void +lto_section_overrun (struct lto_input_block *ib) +{ + internal_error ("bytecode stream: trying to read %d bytes " + "after the end of the input buffer", ib->p - ib->len); +} |