Mark memory using nodes with "uses_memory".
[libfirm] / ir / ident / ident.c
index c490f96..8a23dfa 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief     Hash table to store names.
  * @author    Goetz Lindenmaier
- * @version   $Id$
  */
 #include "config.h"
 
@@ -47,7 +46,7 @@ void init_ident(void)
 
 ident *new_id_from_chars(const char *str, size_t len)
 {
-       unsigned hash   = HASH_STR(str, len);
+       unsigned hash   = hash_data((const unsigned char*)str, len);
        ident   *result = (ident*) set_hinsert0(id_set, str, len, hash);
        return result;
 }