From: Matthias Braun Date: Wed, 16 May 2007 17:18:10 +0000 (+0000) Subject: get_irn_generic_attr supports const ir_node* now X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d790da419e7d3c2287d78002ece02455ce0d4ae3;p=libfirm get_irn_generic_attr supports const ir_node* now [r13908] --- diff --git a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c index 5c5b1d5b1..5c009ecaf 100644 --- a/ir/be/TEMPLATE/TEMPLATE_new_nodes.c +++ b/ir/be/TEMPLATE/TEMPLATE_new_nodes.c @@ -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); } /**