Commit 4a4ed5ab authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused function is_arg_Proj()

parent 554a4e6c
......@@ -410,13 +410,6 @@ FIRM_API void remove_Sync_n(ir_node *n, int i);
/** @} */
/**
* Returns non-zero if a node is a routine parameter.
*
* @param node the Proj node to test
*/
FIRM_API int is_arg_Proj(const ir_node *node);
/** @addtogroup ASM
* @{
*/
......
......@@ -736,11 +736,6 @@ void add_Sync_pred(ir_node *node, ir_node *pred)
add_irn_n(node, pred);
}
int (is_arg_Proj)(const ir_node *node)
{
return is_arg_Proj_(node);
}
int is_x_except_Proj(const ir_node *node)
{
if (!is_Proj(node))
......
......@@ -78,7 +78,6 @@
#define set_Phi_next(node, phi) set_Phi_next_(node, phi)
#define get_Phi_next(node) get_Phi_next_(node)
#define is_arg_Proj(node) is_arg_Proj_(node)
#define ir_switch_table_get_n_entries(table) ir_switch_table_get_n_entries_(table)
/**
......@@ -484,17 +483,6 @@ static inline void set_Block_mark_(ir_node *block, unsigned mark)
block->attr.block.marked = mark;
}
/** Returns non-zero if a node is a routine parameter. */
static inline int is_arg_Proj_(const ir_node *node)
{
if (! is_Proj(node))
return 0;
node = get_Proj_pred(node);
if (! is_Proj(node))
return 0;
return pn_Start_T_args == get_Proj_num(node) && is_Start(get_Proj_pred(node));
}
static inline size_t ir_switch_table_get_n_entries_(const ir_switch_table *table)
{
return table->n_entries;
......
Markdown is supported
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