diff options
author | 2004-11-26 22:41:55 -0700 | |
---|---|---|
committer | 2005-04-07 21:05:02 -0700 | |
commit | 06242e217c91fd3808091c1ed119a10131c4242e (patch) | |
tree | f622732d00966fccf9ce1ba87bfacf1677f028d7 /linearize.h | |
parent | Fix total braino in empty block packing. (diff) | |
download | sparse-06242e217c91fd3808091c1ed119a10131c4242e.tar.gz sparse-06242e217c91fd3808091c1ed119a10131c4242e.tar.bz2 sparse-06242e217c91fd3808091c1ed119a10131c4242e.zip |
Be a lot more careful when re-writing branches.
Besides, the code is cleaner now - we can use our helper functions.
Diffstat (limited to 'linearize.h')
-rw-r--r-- | linearize.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linearize.h b/linearize.h index 6275ab9..5c9a414 100644 --- a/linearize.h +++ b/linearize.h @@ -237,6 +237,12 @@ static inline int remove_bb_from_list(struct basic_block_list **list, struct bas return delete_ptr_list_entry((struct ptr_list **)list, entry); } +static inline int replace_bb_in_list(struct basic_block_list **list, + struct basic_block *old, struct basic_block *new) +{ + return replace_ptr_list_entry((struct ptr_list **)list, old, new); +} + struct entrypoint { struct symbol *name; struct symbol_list *syms; |