- /* An entity representing the method. Owner of the entity is the global class
- type mentioned above. */
- ent = new_entity ((type *)owner,
- id_from_str (METHODNAME, strlen(METHODNAME)),
- (type *)proc_main);
+ /* An ir_entity representing the method. Owner of the ir_entity is the global class
+ ir_type mentioned above. */
+ ent = new_entity ((ir_type *)owner,
+ new_id_from_chars (METHODNAME, strlen(METHODNAME)),
+ (ir_type *)proc_main);