diff options
Diffstat (limited to 'gcc/value-prof.h')
-rw-r--r-- | gcc/value-prof.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/value-prof.h b/gcc/value-prof.h index 74b754a25d6..233895e4a31 100644 --- a/gcc/value-prof.h +++ b/gcc/value-prof.h @@ -30,6 +30,10 @@ enum hist_type difference between two evaluations of a value. */ }; +#define COUNTER_FOR_HIST_TYPE(TYPE) ((int) (TYPE) + GCOV_FIRST_VALUE_COUNTER) +#define HIST_TYPE_FOR_COUNTER(COUNTER) \ + ((enum hist_type) ((COUNTER) - GCOV_FIRST_VALUE_COUNTER)) + /* The value to measure. */ struct histogram_value { |