Use be_emit_irprintf("%T", x) instead of be_emit_tarval().
[libfirm] / ir / ir / irdumptxt.c
index 310f12d..d61fe6c 100644 (file)
@@ -56,7 +56,6 @@ ir_dump_verbosity_t ir_get_dump_verbosity(void)
        return verbosity;
 }
 
-/* Write the irnode and all its attributes to the file passed. */
 void dump_irnode_to_file(FILE *F, const ir_node *n)
 {
        char     comma;
@@ -152,8 +151,9 @@ void dump_irnode_to_file(FILE *F, const ir_node *n)
        /* Source types */
        switch (get_irn_opcode(n)) {
        case iro_Block: {
-               if (get_Block_entity(n) != NULL)
-                       fprintf(F, "  Label: %lu\n", get_entity_label(get_Block_entity(n)));
+               ir_entity *const entity = get_Block_entity(n);
+               if (entity != NULL)
+                       fprintf(F, "  Label: %lu\n", get_entity_label(entity));
                fprintf(F, "  block visited: %lu\n", get_Block_block_visited(n));
                fprintf(F, "  block marked: %u\n", get_Block_mark(n));
                if (is_irg_state(get_irn_irg(n), IR_GRAPH_STATE_CONSISTENT_DOMINANCE)) {
@@ -316,7 +316,7 @@ void dump_irnode_to_file(FILE *F, const ir_node *n)
 
        if (get_irg_typeinfo_state(get_irn_irg(n)) == ir_typeinfo_consistent  ||
                get_irg_typeinfo_state(get_irn_irg(n)) == ir_typeinfo_inconsistent  )
-               if (get_irn_typeinfo_type(n) != firm_none_type)
+               if (get_irn_typeinfo_type(n) != get_none_type())
                        ir_fprintf (F, "  Analysed type: %s\n", get_irn_typeinfo_type(n));
 }