Make add_phi_node_to_bb static
Checks
Commit Message
The only exported PHI allocation already adds the PHI node to a block.
Bootstrapped on x86_64-unknown-linux-gnu, pushed.
* tree-phinodes.h (add_phi_node_to_bb): Remove.
* tree-phinodes.cc (add_phi_node_to_bb): Make static.
---
gcc/tree-phinodes.cc | 3 +--
gcc/tree-phinodes.h | 1 -
2 files changed, 1 insertion(+), 3 deletions(-)
@@ -315,7 +315,7 @@ reserve_phi_args_for_new_edge (basic_block bb)
/* Adds PHI to BB. */
-void
+static void
add_phi_node_to_bb (gphi *phi, basic_block bb)
{
gimple_seq seq = phi_nodes (bb);
@@ -330,7 +330,6 @@ add_phi_node_to_bb (gphi *phi, basic_block bb)
/* Associate BB to the PHI node. */
gimple_set_bb (phi, bb);
-
}
/* Create a new PHI node for variable VAR at basic block BB. */
@@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see
extern void phinodes_print_statistics (void);
extern void reserve_phi_args_for_new_edge (basic_block);
-extern void add_phi_node_to_bb (gphi *phi, basic_block bb);
extern gphi *create_phi_node (tree, basic_block);
extern void add_phi_arg (gphi *, tree, edge, location_t);
extern void remove_phi_args (edge);