diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-08 16:49:34 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-08 16:49:34 +0000 |
commit | 2541503d0742669641111007ac41e8b26fc69794 (patch) | |
tree | 71d0dfebe89d85d68e84274293c25cee61f487e2 /gcc/lto-section-in.c | |
parent | 82310a30d8c326acabefb8af6f4b943cde02425e (diff) | |
download | gcc-2541503d0742669641111007ac41e8b26fc69794.tar.gz |
rebase
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-section-in.c')
-rw-r--r-- | gcc/lto-section-in.c | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/gcc/lto-section-in.c b/gcc/lto-section-in.c index 0c2c4c0f1c0..1c285faf19e 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. */ |