- handler_info *ptr, *temp;
- int nr;
- nr = new_eh_region_entry (CODE_LABEL_NUMBER (label));
- ptr = get_first_handler (NOTE_BLOCK_NUMBER (copy));
- for ( ; ptr; ptr = ptr->next)
- {
- temp = get_new_handler ( get_label_from_map (map,
- CODE_LABEL_NUMBER (ptr->handler_label)),
- ptr->type_info);
- add_new_handler (nr, temp);
- }
+ /* We need to duplicate the handlers for the EH region
+ and we need to indicate where the label map is */
+ eif_eh_map = map;
+ duplicate_eh_handlers (NOTE_BLOCK_NUMBER (copy),
+ CODE_LABEL_NUMBER (label),
+ expand_inline_function_eh_labelmap);