From bfb69968c361d3e08f6a639fd881ced492bd0356 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 16 Apr 2009 18:42:29 +0000 Subject: except.c (eh_region_outer_p): Remove. * except.c (eh_region_outer_p): Remove. * except.h: Remove the prototype for eh_region_outer_p. From-SVN: r146210 --- gcc/except.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'gcc/except.c') diff --git a/gcc/except.c b/gcc/except.c index 37bc5bb..ac3fd6f 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1224,32 +1224,6 @@ duplicate_eh_regions (struct function *ifun, duplicate_eh_regions_map map, return eh_offset; } -/* Return true if REGION_A is outer to REGION_B in IFUN. */ - -bool -eh_region_outer_p (struct function *ifun, int region_a, int region_b) -{ - struct eh_region *rp_a, *rp_b; - - gcc_assert (ifun->eh->last_region_number > 0); - gcc_assert (ifun->eh->region_tree); - - rp_a = VEC_index (eh_region, ifun->eh->region_array, region_a); - rp_b = VEC_index (eh_region, ifun->eh->region_array, region_b); - gcc_assert (rp_a != NULL); - gcc_assert (rp_b != NULL); - - do - { - if (rp_a == rp_b) - return true; - rp_b = rp_b->outer; - } - while (rp_b); - - return false; -} - /* Return region number of region that is outer to both if REGION_A and REGION_B in IFUN. */ -- cgit v1.1