use tv_t.h instead of tv.h
[libfirm] / ir / ir / ircgopt.c
index e9ecd20..a04d95f 100644 (file)
@@ -16,7 +16,7 @@
  * Aufrufrelation bestimmt.
  */
 #ifdef HAVE_CONFIG_H
-# include <config.h>
+# include "config.h"
 #endif
 
 #include "ircgopt.h"
@@ -46,14 +46,14 @@ static void make_entity_to_description(type_or_ent *tore, void *env) {
   if (get_kind(tore) == k_entity) {
     entity *ent = (entity *)tore;
 
-    if ((is_method_type(get_entity_type(ent)))                        &&
-       (get_entity_peculiarity(ent) != peculiarity_description)      &&
-       (get_entity_visibility(ent)  != visibility_external_allocated)   ) {
+    if ((is_Method_type(get_entity_type(ent)))                        &&
+             (get_entity_peculiarity(ent) != peculiarity_description)      &&
+             (get_entity_visibility(ent)  != visibility_external_allocated)   ) {
       entity *impl = get_SymConst_entity(get_atomic_ent_value(ent));
       if (get_entity_link(impl) != env) {
-       set_entity_peculiarity(ent, peculiarity_description);
-       //set_atomic_ent_value(ent, new_r_Const(get_const_code_irg(), get_irg_start_block(get_const_code_irg()),
-       //                                    mode_P, get_tarval_null(mode_P)));
+             set_entity_peculiarity(ent, peculiarity_description);
+             //set_atomic_ent_value(ent, new_r_Const(get_const_code_irg(), get_irg_start_block(get_const_code_irg()),
+             //                                      mode_P, get_tarval_null(mode_P)));
       }
     }
   }
@@ -89,7 +89,7 @@ void gc_irgs(int n_keep, entity ** keep_arr) {
           assert(get_irn_op(node) == op_Call);
           for (i = get_Call_n_callees(node) - 1; i >= 0; --i) {
             entity * ent = get_Call_callee(node, i);
-            if (ent && get_entity_irg(ent) && get_entity_link(ent) != MARK) {
+            if (get_entity_irg(ent) && get_entity_link(ent) != MARK) {
               set_entity_link(ent, MARK);
               ARR_APP1(entity *, marked, ent);
              if (get_opt_dead_method_elimination_verbose() && get_firm_verbosity() > 2) {