X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph_t.h;h=b431f063cc5f0fe77e1bb8502e526e7863b69352;hb=a08e6f04aa3669cff094f94a9484c7c2bb1314d0;hp=6e393ef6f08a57655bc9fb76d3a3ba24e6eab066;hpb=6f068af98daa4725d60e5d23a8f98ec2841cfa44;p=libfirm diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index 6e393ef6f..b431f063c 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -93,7 +93,7 @@ struct obstack *get_irg_obstack(const ir_graph *irg); * @param irg the IR graph * @param n the IR node */ -int node_is_in_irgs_storage(ir_graph *irg, ir_node *n); +int node_is_in_irgs_storage(const ir_graph *irg, const ir_node *n); /*-------------------------------------------------------------------*/ /* inline functions for graphs */ @@ -447,7 +447,7 @@ static inline void irg_kill_node(ir_graph *irg, ir_node *n) * @return The node with that index or NULL, if there is no node with that index. * @note The node you got might be dead. */ -static inline ir_node *_get_idx_irn(ir_graph *irg, unsigned idx) +static inline ir_node *_get_idx_irn(const ir_graph *irg, unsigned idx) { assert(idx < (unsigned) ARR_LEN(irg->idx_irn_map)); return irg->idx_irn_map[idx];