- removed old global handling artifact
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 18 Apr 2009 19:08:33 +0000 (19:08 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 18 Apr 2009 19:08:33 +0000 (19:08 +0000)
[r25827]

ir/ir/irnode.c

index 228b148..0f3c6b7 100644 (file)
@@ -3220,30 +3220,6 @@ dbg_info *(get_irn_dbg_info)(const ir_node *n) {
        return _get_irn_dbg_info(n);
 }
 
-#if 0 /* allow the global pointer */
-
-/* checks whether a node represents a global address */
-int is_Global(const ir_node *node) {
-       ir_node *ptr;
-
-       if (is_SymConst_addr_ent(node))
-               return 1;
-       if (! is_Sel(node))
-               return 0;
-
-       ptr = get_Sel_ptr(node);
-       return is_globals_pointer(ptr) != NULL;
-}
-
-/* returns the entity of a global address */
-ir_entity *get_Global_entity(const ir_node *node) {
-       if (is_SymConst(node))
-               return get_SymConst_entity(node);
-       else
-               return get_Sel_entity(node);
-}
-#else
-
 /* checks whether a node represents a global address */
 int is_Global(const ir_node *node) {
        return is_SymConst_addr_ent(node);
@@ -3253,7 +3229,6 @@ int is_Global(const ir_node *node) {
 ir_entity *get_Global_entity(const ir_node *node) {
        return get_SymConst_entity(node);
 }
-#endif
 
 /*
  * Calculate a hash value of a node.