X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyopt_t.h;h=d631b92971f444691609f05c5b08ede0cdb7d8a6;hb=a4c23fb5fdcaf600f18b4fa7b7e104fa9b7dc514;hp=422ee35ba407d387318e9bdac15dbb75d2e9696d;hpb=294764ce7bb590e7714ef1378d7eda9608dbef6e;p=libfirm diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h index 422ee35ba..d631b9297 100644 --- a/ir/be/becopyopt_t.h +++ b/ir/be/becopyopt_t.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -122,19 +122,19 @@ typedef struct _affinity_node_t affinity_node_t; struct _neighb_t { neighb_t *next; /** the next neighbour entry*/ - ir_node *irn; /** the neighbour itself */ + const ir_node *irn; /** the neighbour itself */ int costs; /** the costs of the edge (affinity_node_t->irn, neighb_t->irn) */ }; struct _affinity_node_t { - ir_node *irn; /** a node with affinity edges */ + const ir_node *irn; /** a node with affinity edges */ int degree; /** number of affinity edges in the linked list below */ neighb_t *neighbours; /** a linked list of all affinity neighbours */ void *data; /** stuff that is attachable. */ }; -static INLINE affinity_node_t *get_affinity_info(const copy_opt_t *co, ir_node *irn) { +static INLINE affinity_node_t *get_affinity_info(const copy_opt_t *co, const ir_node *irn) { affinity_node_t find; ASSERT_GS_AVAIL(co);