remove old be_get_IncSP_mem, improve be node dumping
[libfirm] / ir / be / beprofile.c
index 5ebe4d2..7931429 100644 (file)
  * PURPOSE.
  */
 
-/** vim: set sw=4 ts=4:
- * @file   beprofile.c
- * @date   2006-04-06
- * @author Adam M. Szalkowski
- * @cvs-id $Id$
- *
- * Code instrumentation and execution count profiling
- *
- * Copyright (C) 2006 Universitaet Karlsruhe
- * Released under the GPL
+/**
+ * @file
+ * @brief       Code instrumentation and execution count profiling.
+ * @author      Adam M. Szalkowski
+ * @date        06.04.2006
+ * @version     $Id$
  */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -41,7 +37,6 @@
 #include "list.h"
 #include "pmap.h"
 
-#include "entity.h"
 #include "irprintf.h"
 #include "irgwalk.h"
 #include "irdump_t.h"
@@ -51,7 +46,7 @@
 #include "iredges.h"
 #include "execfreq.h"
 #include "irvrfy.h"
-#include "type.h"
+#include "typerep.h"
 
 #include "be_t.h"
 #include "belive_t.h"
@@ -93,6 +88,7 @@ typedef struct _execcount_t {
 static int
 cmp_execcount(const void * a, const void * b, size_t size)
 {
+       (void) size;
        return ((execcount_t*)a)->block != ((execcount_t*)b)->block;
 }
 
@@ -100,6 +96,7 @@ static void
 block_counter(ir_node * bb, void * data)
 {
        unsigned int  *count = data;
+       (void) bb;
        *count = *count + 1;
 }
 
@@ -527,6 +524,7 @@ be_profile_instrument(const char *filename, unsigned flags)
 static void
 profile_node_info(void *ctx, FILE *f, const ir_node *irn)
 {
+       (void) ctx;
        if(is_Block(irn)) {
                fprintf(f, "profiled execution count: %u\n", be_profile_get_block_execcount(irn));
        }