diff options
author | Richard Guenther <rguenther@suse.de> | 2012-05-15 09:20:37 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2012-05-15 09:20:37 +0000 |
commit | 981f49cb6f6e8945b046c0c7fb779c495954d2d5 (patch) | |
tree | 8f82b92849bc601df797526f63d3765f30450da7 /gcc/gimple.h | |
parent | 811ebec3e25ef2e7ac8e857e6539eecb15bfd0fc (diff) |
2012-05-15 Richard Guenther <rguenther@suse.de>
* gimple.c (gimple_set_modified): Move ...
* gimple.h (gimple_set_modified): ... here.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@187503 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r-- | gcc/gimple.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h index 80271a1e358..2b10f1a9b14 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -830,7 +830,6 @@ tree gimple_get_lhs (const_gimple); void gimple_set_lhs (gimple, tree); void gimple_replace_lhs (gimple, tree); gimple gimple_copy (gimple); -void gimple_set_modified (gimple, bool); void gimple_cond_get_ops_from_tree (tree, enum tree_code *, tree *, tree *); gimple gimple_build_cond_from_tree (tree, tree, tree); void gimple_cond_set_condition_from_tree (gimple, tree); @@ -1521,6 +1520,17 @@ gimple_modified_p (const_gimple g) } +/* Set the MODIFIED flag to MODIFIEDP, iff the gimple statement G has + a MODIFIED field. */ + +static inline void +gimple_set_modified (gimple s, bool modifiedp) +{ + if (gimple_has_ops (s)) + s->gsbase.modified = (unsigned) modifiedp; +} + + /* Return the tree code for the expression computed by STMT. This is only valid for GIMPLE_COND, GIMPLE_CALL and GIMPLE_ASSIGN. For GIMPLE_CALL, return CALL_EXPR as the expression code for |