diff options
author | Michael Matz <matz@suse.de> | 2011-10-06 15:18:12 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2011-10-06 15:18:12 +0000 |
commit | 07f5041085113426037737a5bc3590218f17be7e (patch) | |
tree | 820ec7df31409951f282adc16ff5ec3ded32d3ef /gcc/tree-flow-inline.h | |
parent | 5847ec93384be65d57735db989d43eefb7002b7f (diff) | |
download | gcc-07f5041085113426037737a5bc3590218f17be7e.zip gcc-07f5041085113426037737a5bc3590218f17be7e.tar.gz gcc-07f5041085113426037737a5bc3590218f17be7e.tar.bz2 |
tree-flow.h (get_var_ann): Don't declare.
* tree-flow.h (get_var_ann): Don't declare.
* tree-flow-inline.h (get_var_ann): Remove.
(set_is_used): Use var_ann, not get_var_ann.
* tree-dfa.c (add_referenced_var): Inline body of get_var_ann.
* tree-profile.c (gimple_gen_edge_profiler): Call
find_referenced_var_in.
(gimple_gen_interval_profiler): Ditto.
(gimple_gen_pow2_profiler): Ditto.
(gimple_gen_one_value_profiler): Ditto.
(gimple_gen_average_profiler): Ditto.
(gimple_gen_ior_profiler): Ditto.
(gimple_gen_ic_profiler): Ditto plus call add_referenced_var.
(gimple_gen_ic_func_profiler): Call add_referenced_var.
* tree-mudflap.c (execute_mudflap_function_ops): Call
add_referenced_var.
From-SVN: r179618
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index b9c5e16..56edae9 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -145,16 +145,6 @@ var_ann (const_tree t) return p ? *p : NULL; } -/* Return the variable annotation for T, which must be a _DECL node. - Create the variable annotation if it doesn't exist. */ -static inline var_ann_t -get_var_ann (tree var) -{ - var_ann_t *p = DECL_VAR_ANN_PTR (var); - gcc_checking_assert (p); - return *p ? *p : create_var_ann (var); -} - /* Get the number of the next statement uid to be allocated. */ static inline unsigned int gimple_stmt_max_uid (struct function *fn) @@ -568,7 +558,7 @@ phi_arg_index_from_use (use_operand_p use) static inline void set_is_used (tree var) { - var_ann_t ann = get_var_ann (var); + var_ann_t ann = var_ann (var); ann->used = true; } |