Commit a947c209 authored by Michael Beck's avatar Michael Beck
Browse files

- removed old global handling artifact

[r25827]
parent e5ea9ef5
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment