]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/lto-streamer.h
remove need for store_values_directly
[thirdparty/gcc.git] / gcc / lto-streamer.h
index b383631a7477898bb9da81cde67939b9e2fe8991..e3465a834bcb403a2ee9ffd2ea1b0cc1c65b17ae 100644 (file)
@@ -657,17 +657,17 @@ struct string_slot
 
 struct string_slot_hasher : typed_noop_remove <string_slot>
 {
-  typedef string_slot value_type;
-  typedef string_slot compare_type;
-  static inline hashval_t hash (const value_type *);
-  static inline bool equal (const value_type *, const compare_type *);
+  typedef string_slot *value_type;
+  typedef string_slot *compare_type;
+  static inline hashval_t hash (const string_slot *);
+  static inline bool equal (const string_slot *, const string_slot *);
 };
 
 /* Returns a hash code for DS.  Adapted from libiberty's htab_hash_string
    to support strings that may not end in '\0'.  */
 
 inline hashval_t
-string_slot_hasher::hash (const value_type *ds)
+string_slot_hasher::hash (const string_slot *ds)
 {
   hashval_t r = ds->len;
   int i;
@@ -680,7 +680,7 @@ string_slot_hasher::hash (const value_type *ds)
 /* Returns nonzero if DS1 and DS2 are equal.  */
 
 inline bool
-string_slot_hasher::equal (const value_type *ds1, const compare_type *ds2)
+string_slot_hasher::equal (const string_slot *ds1, const string_slot *ds2)
 {
   if (ds1->len == ds2->len)
     return memcmp (ds1->s, ds2->s, ds1->len) == 0;