call hook_new_entity after copying entity so the firm debugger can catch it
authorMatthias Braun <matze@braunis.de>
Thu, 4 Aug 2011 08:49:53 +0000 (10:49 +0200)
committerMatthias Braun <matze@braunis.de>
Thu, 4 Aug 2011 10:35:28 +0000 (12:35 +0200)
ir/tr/entity.c

index 1b08838..e7541d1 100644 (file)
@@ -193,6 +193,7 @@ static ir_entity *deep_entity_copy(ir_entity *old)
 #ifdef DEBUG_libfirm
        newe->nr = get_irp_new_node_nr();
 #endif
+       hook_new_entity(newe);
        return newe;
 }