moved is_Psi() to irnode
[libfirm] / ir / ir / irdumptxt.c
index 030ba11..f536b05 100644 (file)
@@ -342,7 +342,7 @@ int dump_irnode_to_file(FILE *F, ir_node *n) {
                ident **clobber;
                int l;
 
-               fprintf(F, "  assembler text: %s", get_ASM_text(n));
+               fprintf(F, "  assembler text: %s", get_id_str(get_ASM_text(n)));
                l = get_ASM_n_input_constraints(n);
                if (l > 0) {
                        fprintf(F, "\n  inputs:  ");
@@ -414,6 +414,7 @@ void dump_graph_as_text(ir_graph *irg, const char *suffix) {
        fclose (F);
 }
 
+#ifdef EXTENDED_ACCESS_STATS
 static int addr_is_alloc(ir_node *acc) {
        ir_node *addr = NULL;
        ir_opcode addr_op;
@@ -459,6 +460,7 @@ static int addr_is_alloc(ir_node *acc) {
        /* In addition, the alloc must be in the same loop. */
        return 1;
 }
+#endif
 
 /** dumps something like:
  *
@@ -683,7 +685,7 @@ void dump_entity_to_file_prefix(FILE *F, ir_entity *ent, char *prefix, unsigned
        }
 
        if (verbosity & dump_verbosity_accessStats) {
-#if 0
+#ifdef EXTENDED_ACCESS_STATS
                int n_acc = get_entity_n_accesses(ent);
                int max_depth = 0;
                int max_L_freq = -1;
@@ -806,9 +808,14 @@ void dump_entity(ir_entity *ent) {
   dump_entity_to_file(stdout, ent, dump_verbosity_max);
 }
 
-void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix, unsigned verbosity,
-                                    int *max_disp, int disp[], const char *comma) {
-
+void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix,
+                                   unsigned verbosity, int *max_disp,
+                                   int disp[], const char *comma)
+{
+       (void) verbosity;
+       (void) max_disp;
+       (void) disp;
+       (void) comma;
 #if 0   /* Outputs loop depth of all occurrences. */
        int n_acc = get_entity_n_accesses(ent);
        int max_L_freq = -1;
@@ -910,6 +917,8 @@ void dump_entitycsv_to_file_prefix(FILE *F, ir_entity *ent, char *prefix, unsign
 void dump_typecsv_to_file(FILE *F, ir_type *tp, dump_verbosity verbosity, const char *comma) {
        int i;
        char buf[1024 + 10];
+       (void) comma;
+
        if (!is_Class_type(tp)) return;   // we also want array types. Stupid, these are classes in java.
 
        if (verbosity & dump_verbosity_accessStats) {