projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added access routines to external variables.
[libfirm]
/
ir
/
ir
/
irgraph.c
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
4b5c340
..
7ffd10a
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-23,8
+23,21
@@
# include "mangle.h"
ir_graph *current_ir_graph;
# include "mangle.h"
ir_graph *current_ir_graph;
+INLINE ir_graph *get_current_ir_graph() {
+ return current_ir_graph;
+}
+INLINE void set_current_ir_graph(ir_graph *graph) {
+ current_ir_graph = graph;
+}
+
bool interprocedural_view = false;
bool interprocedural_view = false;
+INLINE bool get_interprocedural_view() {
+ return interprocedural_view;
+}
+INLINE void set_interprocedural_view(bool state) {
+ interprocedural_view = state;
+}
#if USE_EXPLICIT_PHI_IN_STACK
/* really defined in ircons.c */
#if USE_EXPLICIT_PHI_IN_STACK
/* really defined in ircons.c */