aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-iterator.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2007-09-07 12:38:46 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2007-09-07 12:38:46 -0400
commitb48d0358542ad050257172d48202f6d59c2d5233 (patch)
tree64b3c5dbf6e7dd437d93c22279822b894ac0ccce /gcc/tree-iterator.h
parent7c45aad5e61c65820606cf8db78bf15d876b2578 (diff)
downloadgcc-b48d0358542ad050257172d48202f6d59c2d5233.zip
gcc-b48d0358542ad050257172d48202f6d59c2d5233.tar.gz
gcc-b48d0358542ad050257172d48202f6d59c2d5233.tar.bz2
tree-flow.h (const_block_stmt_iterator): Remove.
* tree-flow.h (const_block_stmt_iterator): Remove. Update all users to use block_stmt_iterator. * tree-iterator.h (const_tree_stmt_iterator): Remove. Update all users to use tree_stmt_iterator. From-SVN: r128246
Diffstat (limited to 'gcc/tree-iterator.h')
-rw-r--r--gcc/tree-iterator.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/gcc/tree-iterator.h b/gcc/tree-iterator.h
index 5b8113a..98f0cf8 100644
--- a/gcc/tree-iterator.h
+++ b/gcc/tree-iterator.h
@@ -34,11 +34,6 @@ typedef struct {
tree container;
} tree_stmt_iterator;
-typedef struct {
- struct tree_statement_list_node *ptr;
- const_tree container;
-} const_tree_stmt_iterator;
-
static inline tree_stmt_iterator
tsi_start (tree t)
{
@@ -50,17 +45,6 @@ tsi_start (tree t)
return i;
}
-static inline const_tree_stmt_iterator
-ctsi_start (const_tree t)
-{
- const_tree_stmt_iterator i;
-
- i.ptr = STATEMENT_LIST_HEAD (t);
- i.container = t;
-
- return i;
-}
-
static inline tree_stmt_iterator
tsi_last (tree t)
{
@@ -72,17 +56,6 @@ tsi_last (tree t)
return i;
}
-static inline const_tree_stmt_iterator
-ctsi_last (tree t)
-{
- const_tree_stmt_iterator i;
-
- i.ptr = STATEMENT_LIST_TAIL (t);
- i.container = t;
-
- return i;
-}
-
static inline bool
tsi_end_p (tree_stmt_iterator i)
{
@@ -90,23 +63,11 @@ tsi_end_p (tree_stmt_iterator i)
}
static inline bool
-ctsi_end_p (const_tree_stmt_iterator i)
-{
- return i.ptr == NULL;
-}
-
-static inline bool
tsi_one_before_end_p (tree_stmt_iterator i)
{
return i.ptr != NULL && i.ptr->next == NULL;
}
-static inline bool
-ctsi_one_before_end_p (const_tree_stmt_iterator i)
-{
- return i.ptr != NULL && i.ptr->next == NULL;
-}
-
static inline void
tsi_next (tree_stmt_iterator *i)
{
@@ -114,23 +75,11 @@ tsi_next (tree_stmt_iterator *i)
}
static inline void
-ctsi_next (const_tree_stmt_iterator *i)
-{
- i->ptr = i->ptr->next;
-}
-
-static inline void
tsi_prev (tree_stmt_iterator *i)
{
i->ptr = i->ptr->prev;
}
-static inline void
-ctsi_prev (const_tree_stmt_iterator *i)
-{
- i->ptr = i->ptr->prev;
-}
-
static inline tree *
tsi_stmt_ptr (tree_stmt_iterator i)
{
@@ -143,12 +92,6 @@ tsi_stmt (tree_stmt_iterator i)
return i.ptr->stmt;
}
-static inline const_tree
-ctsi_stmt (const_tree_stmt_iterator i)
-{
- return i.ptr->stmt;
-}
-
enum tsi_iterator_update
{
TSI_NEW_STMT, /* Only valid when single statement is added, move