aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-section-in.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-08-08 12:49:34 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-08-08 12:49:34 -0400
commitf0efc7aa7705facdb16a39a08137cf748c7d5f30 (patch)
tree71d0dfebe89d85d68e84274293c25cee61f487e2 /gcc/lto-section-in.c
parentb7926cf90567f9c9e12cdcc8935c58223055fe90 (diff)
downloadgcc-f0efc7aa7705facdb16a39a08137cf748c7d5f30.zip
gcc-f0efc7aa7705facdb16a39a08137cf748c7d5f30.tar.gz
gcc-f0efc7aa7705facdb16a39a08137cf748c7d5f30.tar.bz2
rebase
From-SVN: r177571
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r--gcc/lto-section-in.c109
1 files changed, 0 insertions, 109 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c
index 0c2c4c0..1c285faf 100644
--- a/gcc/lto-section-in.c
+++ b/gcc/lto-section-in.c
@@ -63,115 +63,6 @@ const char *lto_section_name[LTO_N_SECTION_TYPES] =
};
-/* Read an ULEB128 Number of IB. */
-
-unsigned HOST_WIDE_INT
-lto_input_uleb128 (struct lto_input_block *ib)
-{
- unsigned HOST_WIDE_INT result = 0;
- int shift = 0;
- unsigned HOST_WIDE_INT byte;
-
- while (true)
- {
- byte = lto_input_1_unsigned (ib);
- result |= (byte & 0x7f) << shift;
- shift += 7;
- if ((byte & 0x80) == 0)
- return result;
- }
-}
-
-/* HOST_WIDEST_INT version of lto_input_uleb128. IB is as in
- lto_input_uleb128. */
-
-unsigned HOST_WIDEST_INT
-lto_input_widest_uint_uleb128 (struct lto_input_block *ib)
-{
- unsigned HOST_WIDEST_INT result = 0;
- int shift = 0;
- unsigned HOST_WIDEST_INT byte;
-
- while (true)
- {
- byte = lto_input_1_unsigned (ib);
- result |= (byte & 0x7f) << shift;
- shift += 7;
- if ((byte & 0x80) == 0)
- return result;
- }
-}
-
-/* Read an SLEB128 Number of IB. */
-
-HOST_WIDE_INT
-lto_input_sleb128 (struct lto_input_block *ib)
-{
- HOST_WIDE_INT result = 0;
- int shift = 0;
- unsigned HOST_WIDE_INT byte;
-
- while (true)
- {
- byte = lto_input_1_unsigned (ib);
- result |= (byte & 0x7f) << shift;
- shift += 7;
- if ((byte & 0x80) == 0)
- {
- if ((shift < HOST_BITS_PER_WIDE_INT) && (byte & 0x40))
- result |= - ((HOST_WIDE_INT)1 << shift);
-
- return result;
- }
- }
-}
-
-
-/* Unpack VAL from BP in a variant of uleb format. */
-
-unsigned HOST_WIDE_INT
-bp_unpack_var_len_unsigned (struct bitpack_d *bp)
-{
- unsigned HOST_WIDE_INT result = 0;
- int shift = 0;
- unsigned HOST_WIDE_INT half_byte;
-
- while (true)
- {
- half_byte = bp_unpack_value (bp, 4);
- result |= (half_byte & 0x7) << shift;
- shift += 3;
- if ((half_byte & 0x8) == 0)
- return result;
- }
-}
-
-
-/* Unpack VAL from BP in a variant of sleb format. */
-
-HOST_WIDE_INT
-bp_unpack_var_len_int (struct bitpack_d *bp)
-{
- HOST_WIDE_INT result = 0;
- int shift = 0;
- unsigned HOST_WIDE_INT half_byte;
-
- while (true)
- {
- half_byte = bp_unpack_value (bp, 4);
- result |= (half_byte & 0x7) << shift;
- shift += 3;
- if ((half_byte & 0x8) == 0)
- {
- if ((shift < HOST_BITS_PER_WIDE_INT) && (half_byte & 0x4))
- result |= - ((HOST_WIDE_INT)1 << shift);
-
- return result;
- }
- }
-}
-
-
/* Hooks so that the ipa passes can call into the lto front end to get
sections. */