aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-08-15 07:51:35 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-08-15 07:51:35 +0000
commit4b5337e60efa264137d1a65e12c612cb50e98b42 (patch)
tree20b43de3f2a32065f638708f880e84e66d33080b /gcc/lto-streamer-out.c
parent6e2028ff0f24561125d465b3c8d6acc88d4d82dc (diff)
downloadgcc-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-out.c')
-rw-r--r--gcc/lto-streamer-out.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 029b662..1dc37ef 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -189,10 +189,7 @@ lto_output_location (struct output_block *ob, struct bitpack_d *bp,
bp_pack_value (bp, ob->current_col != xloc.column, 1);
if (ob->current_file != xloc.file)
- bp_pack_var_len_unsigned (bp,
- streamer_string_index (ob, xloc.file,
- strlen (xloc.file) + 1,
- true));
+ bp_pack_string (ob, bp, xloc.file, true);
ob->current_file = xloc.file;
if (ob->current_line != xloc.line)