]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make add_phi_node_to_bb static
authorRichard Biener <rguenther@suse.de>
Wed, 2 Aug 2023 11:26:06 +0000 (13:26 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 2 Aug 2023 11:51:04 +0000 (13:51 +0200)
The only exported PHI allocation already adds the PHI node to a block.

* tree-phinodes.h (add_phi_node_to_bb): Remove.
* tree-phinodes.cc  (add_phi_node_to_bb): Make static.

gcc/tree-phinodes.cc
gcc/tree-phinodes.h

index 976f3dbae1041f57448970db60adbace769477b4..63baec4c16a1911678aef1f7eb283f456d648baf 100644 (file)
@@ -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.  */
index be114e317b4277e1403e2124e2cbe7fe4cd06883..99209ad3392e849d579fe8466e2495f982630099 100644 (file)
@@ -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);