diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2006-12-29 16:05:57 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2006-12-29 16:05:57 +0000 |
commit | cb9444a7ab050a16cd95bbf1966af0886ca6bf08 (patch) | |
tree | 3e86202b1ae26304b842bac962d9fb3368ecc66b /gcc | |
parent | c6d86fcea5621041ce23bf76d6c1881db7235afb (diff) | |
download | gcc-cb9444a7ab050a16cd95bbf1966af0886ca6bf08.zip gcc-cb9444a7ab050a16cd95bbf1966af0886ca6bf08.tar.gz gcc-cb9444a7ab050a16cd95bbf1966af0886ca6bf08.tar.bz2 |
tree-cfg.c (last_stmt_ptr): Remove.
* tree-cfg.c (last_stmt_ptr): Remove.
* tree-flow.h: Remove the prototype for last_stmt_ptr.
From-SVN: r120266
Diffstat (limited to 'gcc')
-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 be7fac7..83d3b8a 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 bdb1bce..51c0d26 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 d4fa3dd..08e65c7 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); |