get_irn_generic_attr supports const ir_node* now
authorMatthias Braun <matze@braunis.de>
Wed, 16 May 2007 17:18:10 +0000 (17:18 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 16 May 2007 17:18:10 +0000 (17:18 +0000)
[r13908]

ir/be/TEMPLATE/TEMPLATE_new_nodes.c

index 5c5b1d5..5c009ec 100644 (file)
@@ -221,13 +221,9 @@ static int TEMPLATE_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
  *                                       |___/
  ***************************************************************************************************/
 
-/**
- * Wraps get_irn_generic_attr() as it takes no const ir_node, so we need to do a cast.
- * Firm was made by people hating const :-(
- */
 TEMPLATE_attr_t *get_TEMPLATE_attr(const ir_node *node) {
        assert(is_TEMPLATE_irn(node) && "need TEMPLATE node to get attributes");
-       return (TEMPLATE_attr_t *)get_irn_generic_attr((ir_node *)node);
+       return (TEMPLATE_attr_t *)get_irn_generic_attr(node);
 }
 
 /**