added status function
authorAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Mon, 4 Sep 2006 18:13:55 +0000 (18:13 +0000)
committerAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Mon, 4 Sep 2006 18:13:55 +0000 (18:13 +0000)
ir/be/beprofile.c
ir/be/beprofile.h

index 60058a3..ea1a475 100644 (file)
@@ -335,6 +335,15 @@ be_profile_free(void)
                del_set(profile);
 }
 
+/**
+ * Tells whether profile module has aquired data
+ */
+int
+be_profile_has_data(void)
+{
+       return (profile != NULL);
+}
+
 /**
  * Get block execution count as determined be profiling
  */
index b3fbf18..2663609 100644 (file)
@@ -35,4 +35,9 @@ void be_profile_free(void);
  */
 unsigned int be_profile_get_block_execcount(const ir_node * block);
 
+/**
+ * Tells whether profile module has aquired data
+ */
+int be_profile_has_data(void);
+
 #endif /* _BEPROFILE_H_ */