moved iterator allocation outside loop
[libfirm] / ir / be / beprofile.c
index 100551c..6b36cd3 100644 (file)
@@ -38,7 +38,7 @@
 #include "belive_t.h"
 #include "besched_t.h"
 #include "beirgmod.h"
-#include "bearch.h"
+#include "bearch_t.h"
 #include "beabi.h"
 #include "benode_t.h"
 #include "beutil.h"
@@ -308,7 +308,7 @@ ir_graph *
 be_profile_instrument(const char *filename, unsigned flags)
 {
        int n, i;
-       unsigned int n_blocks = 0;
+       int n_blocks = 0;
        ir_entity *bblock_id;
        ir_entity *bblock_counts;
        ir_entity *ent_filename;