diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-29 16:05:57 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-12-29 16:05:57 +0000 |
commit | 61e2e4a0f62b6ce9903ccd8c53a62130ce094afe (patch) | |
tree | 3e86202b1ae26304b842bac962d9fb3368ecc66b | |
parent | dce227123e92330dbcd6a35a8641d02867cbaa7c (diff) | |
download | gcc-61e2e4a0f62b6ce9903ccd8c53a62130ce094afe.tar.gz |
* tree-cfg.c (last_stmt_ptr): Remove.
* tree-flow.h: Remove the prototype for last_stmt_ptr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120266 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 10 | ||||
-rw-r--r-- | gcc/tree-flow.h | 1 |
3 files changed, 5 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be7fac78b39..83d3b8a3bda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index bdb1bce2323..51c0d266aa0 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -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. */ diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index d4fa3dd57aa..08e65c7469c 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -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); |