aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfg.c
diff options
context:
space:
mode:
authorBin Cheng <bin.cheng@arm.com>2016-10-13 10:52:00 +0000
committerBin Cheng <amker@gcc.gnu.org>2016-10-13 10:52:00 +0000
commitd96004b805ee1ad4425b81f3a225240e2745715f (patch)
tree447f34cd90f8a780c954781139f9db62adb3a742 /gcc/cfg.c
parent1a1ab05e906d5fe546e72354dd79d455becd71df (diff)
downloadgcc-d96004b805ee1ad4425b81f3a225240e2745715f.zip
gcc-d96004b805ee1ad4425b81f3a225240e2745715f.tar.gz
gcc-d96004b805ee1ad4425b81f3a225240e2745715f.tar.bz2
cfg.c (reset_original_copy_tables): New func.
* cfg.c (reset_original_copy_tables): New func. * cfg.h (reset_original_copy_tables): New decl. From-SVN: r241095
Diffstat (limited to 'gcc/cfg.c')
-rw-r--r--gcc/cfg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cfg.c b/gcc/cfg.c
index cab66c6..ee2e42c 100644
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -1066,6 +1066,18 @@ initialize_original_copy_tables (void)
loop_copy = new hash_table<bb_copy_hasher> (10);
}
+/* Reset the data structures to maintain mapping between blocks and
+ its copies. */
+
+void
+reset_original_copy_tables (void)
+{
+ gcc_assert (original_copy_bb_pool);
+ bb_original->empty ();
+ bb_copy->empty ();
+ loop_copy->empty ();
+}
+
/* Free the data structures to maintain mapping between blocks and
its copies. */
void