diff options
author | Richard Biener <rguenther@suse.de> | 2014-08-15 07:51:35 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-08-15 07:51:35 +0000 |
commit | 4b5337e60efa264137d1a65e12c612cb50e98b42 (patch) | |
tree | 20b43de3f2a32065f638708f880e84e66d33080b /gcc/lto-streamer-in.c | |
parent | 6e2028ff0f24561125d465b3c8d6acc88d4d82dc (diff) | |
download | gcc-4b5337e60efa264137d1a65e12c612cb50e98b42.zip gcc-4b5337e60efa264137d1a65e12c612cb50e98b42.tar.gz gcc-4b5337e60efa264137d1a65e12c612cb50e98b42.tar.bz2 |
data-streamer.h (streamer_string_index, [...]): Remove.
2014-08-15 Richard Biener <rguenther@suse.de>
* data-streamer.h (streamer_string_index, string_for_index):
Remove.
* data-streamer-out.c (streamer_string_index): Make static.
* data-streamer-in.c (string_for_index): Likewise.
* lto-streamer-out.c (lto_output_location): Use bp_pack_string.
* lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
From-SVN: r214007
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r-- | gcc/lto-streamer-in.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index 3911157..f6488d8 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -154,7 +154,6 @@ lto_input_location (struct bitpack_d *bp, struct data_in *data_in) static int current_line; static int current_col; bool file_change, line_change, column_change; - unsigned len; bool prev_file = current_file != NULL; if (bp_unpack_value (bp, 1)) @@ -165,10 +164,7 @@ lto_input_location (struct bitpack_d *bp, struct data_in *data_in) column_change = bp_unpack_value (bp, 1); if (file_change) - current_file = canon_file_name - (string_for_index (data_in, - bp_unpack_var_len_unsigned (bp), - &len)); + current_file = canon_file_name (bp_unpack_string (data_in, bp)); if (line_change) current_line = bp_unpack_var_len_unsigned (bp); |