diff options
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index 66cfa97..36003e7 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -157,6 +157,7 @@ struct GTY(()) rtl_eh { struct gimple_df; struct call_site_record_d; struct dw_fde_node; +class range_query; struct GTY(()) varasm_status { /* If we're using a per-function constant pool, this is it. */ @@ -309,6 +310,12 @@ struct GTY(()) function { debugging is enabled. */ struct dw_fde_node *fde; + /* Range query mechanism for functions. The default is to pick up + global ranges. If a pass wants on-demand ranges OTOH, it must + call enable/disable_ranger(). The pointer is never null. It + should be queried by calling get_range_query(). */ + range_query * GTY ((skip)) x_range_query; + /* Last statement uid. */ int last_stmt_uid; @@ -712,4 +719,15 @@ extern const char *current_function_name (void); extern void used_types_insert (tree); +/* Returns the currently active range access class. When there is no active + range class, global ranges are used. Never returns null. */ + +ATTRIBUTE_RETURNS_NONNULL inline range_query * +get_range_query (const struct function *fun) +{ + return fun->x_range_query; +} + +extern range_query *get_global_range_query (); + #endif /* GCC_FUNCTION_H */ |