* @file
* @brief Register mapping for firm nodes. Stolen from bearch_firm :)
* @author Oliver Richter, Tobias Gneist
- * @version $Id$
*/
#include "config.h"
templ.irn = irn;
templ.reg = NULL;
- hash = HASH_PTR(irn);
+ hash = hash_ptr(irn);
- return (arm_irn_reg_assoc*)set_insert(reg_set, &templ, sizeof(templ), hash);
+ return set_insert(arm_irn_reg_assoc, reg_set, &templ, sizeof(templ), hash);
}
void arm_set_firm_reg(ir_node *irn, const arch_register_t *reg, set *reg_set)