Bad and Unknown are pinned instructions yet, speeding up code placement
[libfirm] / ir / ir / irprog.c
index 35f28f1..40e3d4c 100644 (file)
@@ -68,7 +68,7 @@ ir_prog *new_ir_prog (void) {
   res->max_node_nr = 0;
 #endif
 
-  res->glob_type = new_type_class(id_from_str (GLOBAL_TYPE_NAME,
+  res->glob_type = new_type_class(new_id_from_chars (GLOBAL_TYPE_NAME,
                                               strlen(GLOBAL_TYPE_NAME)));
   /* Remove type from type list.  Must be treated differently than
      other types. */
@@ -76,7 +76,7 @@ ir_prog *new_ir_prog (void) {
 
   res->const_code_irg = new_const_code_irg();
 
-  res->outs_state = no_outs;
+  res->outs_state = outs_none;
   res->ip_outedges = NULL;
 
   return res;
@@ -218,3 +218,12 @@ ir_node** get_irp_ip_outedges(void)
 {
   return(irp -> ip_outedges);
 }
+
+
+irg_callee_info_state get_irp_callee_info_state(void) {
+  return irp->callee_info_state;
+}
+
+void set_irp_callee_info_state(irg_callee_info_state s) {
+  irp->callee_info_state = s;
+}