Commit 5781e98f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

ir: Provide an inline implementation of get_irn_in().

parent c59fdbff
......@@ -143,11 +143,6 @@ int (get_irn_arity)(const ir_node *node)
return get_irn_arity_(node);
}
ir_node **get_irn_in(const ir_node *node)
{
return node->in;
}
void set_irn_in(ir_node *const node, int const arity, ir_node *const *const in)
{
assert(node != NULL && node->kind == k_ir_node);
......
......@@ -86,7 +86,10 @@
* Note that this function returns the whole in array including the
* block predecessor. So, it is NOT symmetric with set_irn_in().
*/
ir_node **get_irn_in(const ir_node *node);
static inline ir_node **get_irn_in(ir_node const *const node)
{
return node->in;
}
/*-------------------------------------------------------------------*/
/* These function are most used in libfirm. Give them as static */
......
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