remove get_irn_modename, get_irn_modeident from public API. It's unclear why we need...
authorMatthias Braun <matze@braunis.de>
Sat, 8 Jan 2011 12:32:25 +0000 (12:32 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 8 Jan 2011 12:32:25 +0000 (12:32 +0000)
[r28240]

include/libfirm/irnode.h
ir/ir/irnode.c
ir/ir/irverify.c

index b2c6e78..b1a89a3 100644 (file)
@@ -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. */
index 158d341..fa66010 100644 (file)
@@ -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);
index 6614caa..ec368e7 100644 (file)
@@ -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
  */