ir_visibility cleanup
[libfirm] / ir / opt / garbage_collect.c
index 9ea12b8..7fc81ec 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief    Removal of unreachable methods.
  * @author   Matthias Braun
- * @version  $Id$
  */
 #include "config.h"
 
@@ -36,7 +35,7 @@
 #include "error.h"
 #include "debug.h"
 
-DEBUG_ONLY(static firm_dbg_module_t *dbg);
+DEBUG_ONLY(static firm_dbg_module_t *dbg;)
 
 static void visit_entity(ir_entity *entity);
 
@@ -123,7 +122,7 @@ static void visit_segment(ir_type *segment)
 
        for (i = 0; i < n_entities; ++i) {
                ir_entity *entity = get_compound_member(segment, i);
-               if (get_entity_visibility(entity) != ir_visibility_default
+               if (get_entity_visibility(entity) != ir_visibility_external
                                && !(get_entity_linkage(entity) & IR_LINKAGE_HIDDEN_USER))
                        continue;