Ignore generated files.
[libfirm] / ir / ir / irargs.c
index 22ea1be..77617ae 100644 (file)
@@ -90,11 +90,7 @@ static int firm_emit_dbg(lc_appendable_t *app,
        ir_node *irn = arg->v_ptr;
        dbg_info *dbg = get_irn_dbg_info(irn);
 
-       buf[0] = '\0';
-       if (dbg && __dbg_info_snprint) {
-               if (__dbg_info_snprint(buf, sizeof(buf), dbg) <= 0)
-                       buf[0] = '\0';
-       }
+       ir_dbg_info_snprint(buf, sizeof(buf), dbg);
        return lc_arg_append(app, occ, buf, strlen(buf));
 }
 
@@ -140,10 +136,14 @@ static int firm_emit(lc_appendable_t *app,
                        isupper(occ->conversion) ? get_entity_ld_name_ex(X): get_entity_name(X));
                snprintf(add, sizeof(add), "[%ld]", get_entity_nr(X));
                break;
-       case k_type:
-               snprintf(buf, sizeof(buf), "%s%s:%s", A("type"), get_type_tpop_name(X), get_type_name(X));
+       case k_type: {
+               char type_name[256];
+               ir_print_type(type_name, sizeof(type_name), X);
+               snprintf(buf, sizeof(buf), "%s%s:%s", A("type"), get_type_tpop_name(X),
+                        type_name);
                snprintf(add, sizeof(add), "[%ld]", get_type_nr(X));
                break;
+       }
        case k_ir_graph:
                if (X == get_const_code_irg())
                        snprintf(buf, sizeof(buf), "%s<ConstCodeIrg>", A("irg"));