sched_skip_cf_predicator() does not need an arch_env as environment anymore.
[libfirm] / ir / ir / irnode.c
index 6194330..3dc3b83 100644 (file)
@@ -457,14 +457,14 @@ void (mark_irn_visited)(ir_node *node) {
        _mark_irn_visited(node);
 }
 
-int (irn_not_visited)(const ir_node *node) {
-       return _irn_not_visited(node);
-}
-
 int (irn_visited)(const ir_node *node) {
        return _irn_visited(node);
 }
 
+int (irn_visited_else_mark)(ir_node *node) {
+       return _irn_visited_else_mark(node);
+}
+
 void (set_irn_link)(ir_node *node, void *link) {
        _set_irn_link(node, link);
 }
@@ -492,43 +492,6 @@ void set_irn_pinned(ir_node *node, op_pin_state state) {
        node->attr.except.pin_state = state;
 }
 
-#ifdef DO_HEAPANALYSIS
-/* Access the abstract interpretation information of a node.
-   Returns NULL if no such information is available. */
-struct abstval *get_irn_abst_value(ir_node *n) {
-       return n->av;
-}
-/* Set the abstract interpretation information of a node. */
-void set_irn_abst_value(ir_node *n, struct abstval *os) {
-       n->av = os;
-}
-struct section *firm_get_irn_section(ir_node *n) {
-       return n->sec;
-}
-void firm_set_irn_section(ir_node *n, struct section *s) {
-       n->sec = s;
-}
-#else
-/* Dummies needed for firmjni. */
-struct abstval *get_irn_abst_value(ir_node *n) {
-       (void) n;
-       return NULL;
-}
-void set_irn_abst_value(ir_node *n, struct abstval *os) {
-       (void) n;
-       (void) os;
-}
-struct section *firm_get_irn_section(ir_node *n) {
-       (void) n;
-       return NULL;
-}
-void firm_set_irn_section(ir_node *n, struct section *s) {
-       (void) n;
-       (void) s;
-}
-#endif /* DO_HEAPANALYSIS */
-
-
 /* Outputs a unique number for this node */
 long get_irn_node_nr(const ir_node *node) {
        assert(node);
@@ -1397,8 +1360,7 @@ ir_entity *get_Call_callee(const ir_node *node, int pos) {
 void set_Call_callee_arr(ir_node *node, const int n, ir_entity ** arr) {
        assert(is_Call(node));
        if (node->attr.call.callee_arr == NULL || get_Call_n_callees(node) != n) {
-               ir_graph *irg = get_irn_irg(node);
-               node->attr.call.callee_arr = NEW_ARR_D(ir_entity *, irg->obst, n);
+               node->attr.call.callee_arr = NEW_ARR_D(ir_entity *, current_ir_graph->obst, n);
        }
        memcpy(node->attr.call.callee_arr, arr, n * sizeof(ir_entity *));
 }