tree-cfg.c (last_stmt_ptr): Remove.
authorKazu Hirata <kazu@codesourcery.com>
Fri, 29 Dec 2006 16:05:57 +0000 (16:05 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 29 Dec 2006 16:05:57 +0000 (16:05 +0000)
* tree-cfg.c (last_stmt_ptr): Remove.
* tree-flow.h: Remove the prototype for last_stmt_ptr.

From-SVN: r120266

gcc/ChangeLog
gcc/tree-cfg.c
gcc/tree-flow.h

index be7fac7..83d3b8a 100644 (file)
@@ -1,3 +1,8 @@
+2006-12-29  Kazu Hirata  <kazu@codesourcery.com>
+
+       * tree-cfg.c (last_stmt_ptr): Remove.
+       * tree-flow.h: Remove the prototype for last_stmt_ptr.
+
 2006-12-29  Ian Lance Taylor  <iant@google.com>
 
        * c-common.c (c_define_builtins): New static function broken out
index bdb1bce..51c0d26 100644 (file)
@@ -2686,16 +2686,6 @@ last_stmt (basic_block bb)
 }
 
 
-/* Return a pointer to the last statement in block BB.  */
-
-tree *
-last_stmt_ptr (basic_block bb)
-{
-  block_stmt_iterator last = bsi_last (bb);
-  return !bsi_end_p (last) ? bsi_stmt_ptr (last) : NULL;
-}
-
-
 /* Return the last statement of an otherwise empty block.  Return NULL
    if the block is totally empty, or if it contains more than one
    statement.  */
index d4fa3dd..08e65c7 100644 (file)
@@ -637,7 +637,6 @@ extern void cleanup_dead_labels (void);
 extern void group_case_labels (void);
 extern tree first_stmt (basic_block);
 extern tree last_stmt (basic_block);
-extern tree *last_stmt_ptr (basic_block);
 extern tree last_and_only_stmt (basic_block);
 extern edge find_taken_edge (basic_block, tree);
 extern basic_block label_to_block_fn (struct function *, tree);