diff options
author | Trevor Saunders <tbsaunde@tbsaunde.org> | 2015-09-20 00:52:59 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-09-20 00:52:59 +0000 |
commit | 355fe0884b8097c32e859f0df57c83bde0c6bd26 (patch) | |
tree | aadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/gimple-walk.c | |
parent | e4f2a3e4588bbc3691b452d8a2c520e8196b0ef3 (diff) | |
download | gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.tar.gz |
switch from gimple to gimple*
This renames the gimple_statement_base struct to gimple removes the
typedef of gimple_statement_base * to gimple, and then adjusts all of
the places that use the type.
gcc/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* coretypes.h (gimple): Change typedef to be a forward
declaration.
* gimple.h (gimple_statement_base): rename to gimple.
* (all functions and types using gimple): Adjust.
* *.[ch]: Likewise.
gcc/cp/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* cp-gimplify.c (gimplify_must_not_throw_expr): Adjust.
From-SVN: r227941
Diffstat (limited to 'gcc/gimple-walk.c')
-rw-r--r-- | gcc/gimple-walk.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/gimple-walk.c b/gcc/gimple-walk.c index f8add6c9069..e62cf62be12 100644 --- a/gcc/gimple-walk.c +++ b/gcc/gimple-walk.c @@ -43,7 +43,7 @@ along with GCC; see the file COPYING3. If not see Otherwise, all the statements are walked and NULL returned. */ -gimple +gimple * walk_gimple_seq_mod (gimple_seq *pseq, walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info *wi) { @@ -76,12 +76,12 @@ walk_gimple_seq_mod (gimple_seq *pseq, walk_stmt_fn callback_stmt, /* Like walk_gimple_seq_mod, but ensure that the head of SEQ isn't changed by the callbacks. */ -gimple +gimple * walk_gimple_seq (gimple_seq seq, walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info *wi) { gimple_seq seq2 = seq; - gimple ret = walk_gimple_seq_mod (&seq2, callback_stmt, callback_op, wi); + gimple *ret = walk_gimple_seq_mod (&seq2, callback_stmt, callback_op, wi); gcc_assert (seq2 == seq); return ret; } @@ -178,7 +178,7 @@ walk_gimple_asm (gasm *stmt, walk_tree_fn callback_op, NULL_TREE if no CALLBACK_OP is specified. */ tree -walk_gimple_op (gimple stmt, walk_tree_fn callback_op, +walk_gimple_op (gimple *stmt, walk_tree_fn callback_op, struct walk_stmt_info *wi) { hash_set<tree> *pset = (wi) ? wi->pset : NULL; @@ -521,9 +521,9 @@ tree walk_gimple_stmt (gimple_stmt_iterator *gsi, walk_stmt_fn callback_stmt, walk_tree_fn callback_op, struct walk_stmt_info *wi) { - gimple ret; + gimple *ret; tree tree_ret; - gimple stmt = gsi_stmt (*gsi); + gimple *stmt = gsi_stmt (*gsi); if (wi) { @@ -688,7 +688,7 @@ get_base_loadstore (tree op) Returns the results of these callbacks or'ed. */ bool -walk_stmt_load_store_addr_ops (gimple stmt, void *data, +walk_stmt_load_store_addr_ops (gimple *stmt, void *data, walk_stmt_load_store_addr_fn visit_load, walk_stmt_load_store_addr_fn visit_store, walk_stmt_load_store_addr_fn visit_addr) @@ -906,7 +906,7 @@ walk_stmt_load_store_addr_ops (gimple stmt, void *data, should make a faster clone for this case. */ bool -walk_stmt_load_store_ops (gimple stmt, void *data, +walk_stmt_load_store_ops (gimple *stmt, void *data, walk_stmt_load_store_addr_fn visit_load, walk_stmt_load_store_addr_fn visit_store) { |