Commit 7a4380ff authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused function get_irn_pred_pos().

parent 908b8128
...@@ -159,8 +159,6 @@ FIRM_API unsigned get_irn_opcode(const ir_node *node); ...@@ -159,8 +159,6 @@ FIRM_API unsigned get_irn_opcode(const ir_node *node);
FIRM_API const char *get_irn_opname(const ir_node *node); FIRM_API const char *get_irn_opname(const ir_node *node);
/** Returns the ident for a string representation of the opcode. */ /** Returns the ident for a string representation of the opcode. */
FIRM_API ident *get_irn_opident(const ir_node *node); FIRM_API ident *get_irn_opident(const ir_node *node);
/** If arg is an argument of the node, returns its position, -1 otherwise */
FIRM_API int get_irn_pred_pos(ir_node *node, ir_node *arg);
/** Returns the visited counter of a node. */ /** Returns the visited counter of a node. */
FIRM_API ir_visited_t get_irn_visited(const ir_node *node); FIRM_API ir_visited_t get_irn_visited(const ir_node *node);
/** Sets the visited counter of a node. */ /** Sets the visited counter of a node. */
......
...@@ -436,16 +436,6 @@ unsigned (get_irn_idx)(const ir_node *node) ...@@ -436,16 +436,6 @@ unsigned (get_irn_idx)(const ir_node *node)
return get_irn_idx_(node); return get_irn_idx_(node);
} }
int get_irn_pred_pos(ir_node *node, ir_node *arg)
{
int i;
for (i = get_irn_arity(node) - 1; i >= 0; i--) {
if (get_irn_n(node, i) == arg)
return i;
}
return -1;
}
ir_node *(get_nodes_block)(const ir_node *node) ir_node *(get_nodes_block)(const ir_node *node)
{ {
return get_nodes_block_(node); return get_nodes_block_(node);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment