summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-11-22 12:59:33 +0100
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>2007-11-22 12:59:33 +0100
commit0e5f781d021c0b1e20ba08f583d4971419fedb5d (patch)
tree04118b133ea2bb325f773cc6ab41b52b8a689096 /ir/be/becopyopt_t.h
parenta41668acc1195182f1dbc50a1032ebb96a53a38b (diff)
Changed phase node initializer to take const ir_node
Adapted all the files to that -> constification Added irg managed phases -> scheduling uses that now. [r16820]
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index 422ee35..4883724 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -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);