projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7bde85a
)
switch off usage of global_pointer again: globals are only SymConsts. -fpic will...
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 2 Apr 2008 18:34:01 +0000
(18:34 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Wed, 2 Apr 2008 18:34:01 +0000
(18:34 +0000)
[r19073]
ir/ir/irnode.c
patch
|
blob
|
history
diff --git
a/ir/ir/irnode.c
b/ir/ir/irnode.c
index
45f56fd
..
5776086
100644
(file)
--- a/
ir/ir/irnode.c
+++ b/
ir/ir/irnode.c
@@
-3084,6
+3084,8
@@
dbg_info *(get_irn_dbg_info)(const ir_node *n) {
return _get_irn_dbg_info(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;
/* checks whether a node represents a global address */
int is_Global(const ir_node *node) {
ir_node *ptr;
@@
-3104,6
+3106,18
@@
ir_entity *get_Global_entity(const ir_node *node) {
else
return get_Sel_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);
+}
+
+/* returns the entity of a global address */
+ir_entity *get_Global_entity(const ir_node *node) {
+ return get_SymConst_entity(node);
+}
+#endif
#ifdef DEBUG_libfirm
void dump_irn(const ir_node *n) {
#ifdef DEBUG_libfirm
void dump_irn(const ir_node *n) {