diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-20 00:52:59 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-20 00:52:59 +0000 |
commit | 42acab1cd6812e2d9e49f4132176f5505f49a0e5 (patch) | |
tree | aadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/cgraphbuild.c | |
parent | 08d9039cffc7a572df5898c48fa080f7ce4b5076 (diff) | |
download | gcc-42acab1cd6812e2d9e49f4132176f5505f49a0e5.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r-- | gcc/cgraphbuild.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c index 7d2d0969fab..33b01be83ac 100644 --- a/gcc/cgraphbuild.c +++ b/gcc/cgraphbuild.c @@ -220,7 +220,7 @@ compute_call_stmt_bb_frequency (tree decl, basic_block bb) /* Mark address taken in STMT. */ static bool -mark_address (gimple stmt, tree addr, tree, void *data) +mark_address (gimple *stmt, tree addr, tree, void *data) { addr = get_base_address (addr); if (TREE_CODE (addr) == FUNCTION_DECL) @@ -243,7 +243,7 @@ mark_address (gimple stmt, tree addr, tree, void *data) /* Mark load of T. */ static bool -mark_load (gimple stmt, tree t, tree, void *data) +mark_load (gimple *stmt, tree t, tree, void *data) { t = get_base_address (t); if (t && TREE_CODE (t) == FUNCTION_DECL) @@ -267,7 +267,7 @@ mark_load (gimple stmt, tree t, tree, void *data) /* Mark store of T. */ static bool -mark_store (gimple stmt, tree t, tree, void *data) +mark_store (gimple *stmt, tree t, tree, void *data) { t = get_base_address (t); if (t && TREE_CODE (t) == VAR_DECL @@ -283,7 +283,7 @@ mark_store (gimple stmt, tree t, tree, void *data) /* Record all references from cgraph_node that are taken in statement STMT. */ void -cgraph_node::record_stmt_references (gimple stmt) +cgraph_node::record_stmt_references (gimple *stmt) { walk_stmt_load_store_addr_ops (stmt, this, mark_load, mark_store, mark_address); @@ -334,7 +334,7 @@ pass_build_cgraph_edges::execute (function *fun) { for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); tree decl; if (is_gimple_debug (stmt)) @@ -432,7 +432,7 @@ cgraph_edge::rebuild_edges (void) { for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); tree decl; if (gcall *call_stmt = dyn_cast <gcall *> (stmt)) |