summaryrefslogtreecommitdiff
path: root/gcc/lto-section-in.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-02 12:37:13 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-02 12:37:13 +0000
commit673ca05f187ae8180b4149e16022f28187e076f4 (patch)
tree2680cf7b12422f82aa3a8f4513c70dc9d5e3692d /gcc/lto-section-in.c
parenta32d549f699927e32207fb725189ddbb9777b2de (diff)
downloadgcc-673ca05f187ae8180b4149e16022f28187e076f4.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173247 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r--gcc/lto-section-in.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
index e7928c4b971..4b88fb10749 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);
+}