From a947c2090825c6a49b3fbfaafc00c8c34d649a40 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 18 Apr 2009 19:08:33 +0000 Subject: [PATCH] - removed old global handling artifact [r25827] --- ir/ir/irnode.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 228b14830..0f3c6b737 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -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. -- 2.20.1