GCC Middle and Back End API Reference
data-streamer-in.c File Reference

Functions

const char * string_for_index ()
const char * streamer_read_indexed_string (struct data_in *data_in, struct lto_input_block *ib, unsigned int *rlen)
const char * streamer_read_string ()
const char * bp_unpack_indexed_string (struct data_in *data_in, struct bitpack_d *bp, unsigned int *rlen)
const char * bp_unpack_string ()
unsigned HOST_WIDE_INT streamer_read_uhwi ()
HOST_WIDE_INT streamer_read_hwi ()
gcov_type streamer_read_gcov_count ()

Function Documentation

const char* bp_unpack_indexed_string ( struct data_in data_in,
struct bitpack_d bp,
unsigned int *  rlen 
)
Read a string from the string table in DATA_IN using the bitpack BP.
   Write the length to RLEN.   

References bp_unpack_var_len_unsigned(), and string_for_index().

Referenced by bp_unpack_string().

const char* bp_unpack_string ( )
Read a NULL terminated string from the string table in DATA_IN.   

References bp_unpack_indexed_string(), internal_error(), and len.

Referenced by unpack_ts_translation_unit_decl_value_fields().

gcov_type streamer_read_gcov_count ( )
const char* streamer_read_indexed_string ( struct data_in data_in,
struct lto_input_block ib,
unsigned int *  rlen 
)
Read a string from the string table in DATA_IN using input block
   IB.  Write the length to RLEN.   

References streamer_read_uhwi(), and string_for_index().

Referenced by input_identifier(), streamer_read_string(), and streamer_read_string_cst().

const char* streamer_read_string ( )
Read a NULL terminated string from the string table in DATA_IN.   

References internal_error(), len, and streamer_read_indexed_string().

Referenced by streamer_get_builtin_tree().

const char* string_for_index ( )
@verbatim Routines for restoring various data types from a file stream.  This deals

with various data types like strings, integers, enums, etc.

Copyright (C) 2011-2013 Free Software Foundation, Inc. Contributed by Diego Novillo dnovi.nosp@m.llo@.nosp@m.googl.nosp@m.e.co.nosp@m.m

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Read a string from the string table in DATA_IN using input block
   IB.  Write the length to RLEN.   

References internal_error(), len, lto_input_block::p, streamer_read_uhwi(), data_in::strings, and data_in::strings_len.

Referenced by bp_unpack_indexed_string(), lto_input_location(), and streamer_read_indexed_string().