make ir_node *irn const for liveness_remove
[libfirm] / ir / be / belive.h
index dbd71ab..3d69cb0 100644 (file)
@@ -36,6 +36,8 @@
 #include "bearch.h"
 #include "irnodeset.h"
 
+struct be_irg_t;
+
 typedef enum {
        be_lv_state_in  = 1,
        be_lv_state_end = 2,
@@ -50,7 +52,7 @@ typedef struct _be_lv_info_t be_lv_info_t;
  * Compute the inter block liveness for a graph.
  * @param irg The graph.
  */
-be_lv_t *be_liveness(ir_graph *irg);
+be_lv_t *be_liveness(const struct be_irg_t *birg);
 
 /**
  * Check the given liveness information against a freshly computed one.
@@ -79,7 +81,7 @@ void be_liveness_update(be_lv_t *lv, ir_node *irn);
 /**
  * Remove a node from the liveness information.
  */
-void be_liveness_remove(be_lv_t *lv, ir_node *irn);
+void be_liveness_remove(be_lv_t *lv, const ir_node *irn);
 
 /**
  * Introduce a new node to the liveness information.