Commit 0a805b86 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove get_irn_modename, get_irn_modeident from public API. It's unclear why...

remove get_irn_modename, get_irn_modeident from public API. It's unclear why we need an explicit combination of get_irn_mode and get_mode_name

[r28240]
parent 840ab2ed
......@@ -154,10 +154,6 @@ FIRM_API void del_Sync_n(ir_node *n, int i);
FIRM_API void set_irn_mode(ir_node *node, ir_mode *mode);
/** Gets the mode struct of a node. */
FIRM_API ir_mode *get_irn_mode(const ir_node *node);
/** Gets the ident for a string representation of the mode .*/
FIRM_API ident *get_irn_modeident(const ir_node *node);
/** Gets the string representation of the mode .*/
FIRM_API const char *get_irn_modename(const ir_node *node);
/** Gets the opcode struct of the node. */
FIRM_API ir_op *get_irn_op(const ir_node *node);
/** Sets the opcode struct of the node. */
......
......@@ -372,19 +372,6 @@ void (set_irn_mode)(ir_node *node, ir_mode *mode)
_set_irn_mode(node, mode);
}
/** Gets the string representation of the mode .*/
const char *get_irn_modename(const ir_node *node)
{
assert(node);
return get_mode_name(node->mode);
}
ident *get_irn_modeident(const ir_node *node)
{
assert(node);
return get_mode_ident(node->mode);
}
ir_op *(get_irn_op)(const ir_node *node)
{
return _get_irn_op(node);
......
......@@ -97,6 +97,12 @@ static void show_entity_failure(ir_node *node)
}
}
static const char *get_irn_modename(const ir_node *node)
{
ir_mode *mode = get_irn_mode(node);
return get_mode_name(mode);
}
/**
* Prints a failure for a Node
*/
......
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