From 3f998e9784869b33f01d452f16fdfe1d628a411d Mon Sep 17 00:00:00 2001 From: Adam Szalkowski Date: Mon, 4 Sep 2006 18:13:55 +0000 Subject: [PATCH 1/1] added status function --- ir/be/beprofile.c | 9 +++++++++ ir/be/beprofile.h | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/ir/be/beprofile.c b/ir/be/beprofile.c index 60058a3eb..ea1a47565 100644 --- a/ir/be/beprofile.c +++ b/ir/be/beprofile.c @@ -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 */ diff --git a/ir/be/beprofile.h b/ir/be/beprofile.h index b3fbf18be..26636094e 100644 --- a/ir/be/beprofile.h +++ b/ir/be/beprofile.h @@ -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_ */ -- 2.20.1