aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linearize.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-28 10:05:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:08 -0700
commite533ccc8e3665fa22a1e6ae11b217d0e5601f08c (patch)
tree7be9761d40ac9af99154e616ce351b2bf609f272 /linearize.h
parent63949df837a8e55f573e70cd995e0163df9d63d1 (diff)
downloadsparse-e533ccc8e3665fa22a1e6ae11b217d0e5601f08c.tar.gz
Make list-ptr remove/replace take a count.
It will assrt if it can't find that many entries. Zero means "all the ones you can find", aka old behaviour.
Diffstat (limited to 'linearize.h')
-rw-r--r--linearize.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/linearize.h b/linearize.h
index 5c9a414e..f26b5fd8 100644
--- a/linearize.h
+++ b/linearize.h
@@ -232,15 +232,15 @@ static inline void use_pseudo(pseudo_t p, pseudo_t *pp)
add_pseudo_ptr(pp, &p->users);
}
-static inline int remove_bb_from_list(struct basic_block_list **list, struct basic_block *entry)
+static inline void remove_bb_from_list(struct basic_block_list **list, struct basic_block *entry, int count)
{
- return delete_ptr_list_entry((struct ptr_list **)list, entry);
+ delete_ptr_list_entry((struct ptr_list **)list, entry, count);
}
-static inline int replace_bb_in_list(struct basic_block_list **list,
- struct basic_block *old, struct basic_block *new)
+static inline void replace_bb_in_list(struct basic_block_list **list,
+ struct basic_block *old, struct basic_block *new, int count)
{
- return replace_ptr_list_entry((struct ptr_list **)list, old, new);
+ replace_ptr_list_entry((struct ptr_list **)list, old, new, count);
}
struct entrypoint {