diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 20:17:32 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-09 20:17:32 +0000 |
commit | 9ca41bd14cf5cd2c666a6678c9689e2e827008fb (patch) | |
tree | 7336db6c5036647519857a17f07f6a705b857545 /gcc/tree-cfg.c | |
parent | f5a6b05fefbe500836e0bf2c406b37dad8b376af (diff) | |
download | gcc-9ca41bd14cf5cd2c666a6678c9689e2e827008fb.tar.gz |
Eliminate basic_block_info macro.
gcc/
* basic-block.h (basic_block_info): Eliminate macro.
* cfgrtl.c (rtl_create_basic_block): Replace uses of
basic_block_info with basic_block_info_for_fn, making uses
of cfun be explicit.
* tree-cfg.c (build_gimple_cfg, create_bb): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205823 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index a7067309972..95585469518 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -242,8 +242,10 @@ build_gimple_cfg (gimple_seq seq) create_empty_bb (ENTRY_BLOCK_PTR_FOR_FN (cfun)); /* Adjust the size of the array. */ - if (basic_block_info->length () < (size_t) n_basic_blocks_for_fn (cfun)) - vec_safe_grow_cleared (basic_block_info, n_basic_blocks_for_fn (cfun)); + if (basic_block_info_for_fn (cfun)->length () + < (size_t) n_basic_blocks_for_fn (cfun)) + vec_safe_grow_cleared (basic_block_info_for_fn (cfun), + n_basic_blocks_for_fn (cfun)); /* To speed up statement iterator walks, we first purge dead labels. */ cleanup_dead_labels (); @@ -603,10 +605,10 @@ create_bb (void *h, void *e, basic_block after) link_block (bb, after); /* Grow the basic block array if needed. */ - if ((size_t) last_basic_block == basic_block_info->length ()) + if ((size_t) last_basic_block == basic_block_info_for_fn (cfun)->length ()) { size_t new_size = last_basic_block + (last_basic_block + 3) / 4; - vec_safe_grow_cleared (basic_block_info, new_size); + vec_safe_grow_cleared (basic_block_info_for_fn (cfun), new_size); } /* Add the newly created block to the array. */ |