projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing grgen dumper to autogenerate file names
[libfirm]
/
ir
/
ir
/
irprog.c
diff --git
a/ir/ir/irprog.c
b/ir/ir/irprog.c
index
6e9cbad
..
6fce2af
100644
(file)
--- a/
ir/ir/irprog.c
+++ b/
ir/ir/irprog.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-68,6
+68,7
@@
static ir_prog *new_incomplete_ir_prog(void) {
res->opcodes = NEW_ARR_F(ir_op *, 0);
res->last_region_nr = 0;
res->last_label_nr = 1; /* 0 is reserved as non-label */
res->opcodes = NEW_ARR_F(ir_op *, 0);
res->last_region_nr = 0;
res->last_label_nr = 1; /* 0 is reserved as non-label */
+ res->max_irg_idx = 0;
#ifdef DEBUG_libfirm
res->max_node_nr = 0;
#ifdef DEBUG_libfirm
res->max_node_nr = 0;
@@
-217,6
+218,10
@@
ir_graph *(get_irp_irg)(int pos){
return _get_irp_irg(pos);
}
return _get_irp_irg(pos);
}
+int get_irp_last_idx(void) {
+ return irp->max_irg_idx;
+}
+
void set_irp_irg(int pos, ir_graph *irg) {
assert(irp && irg);
assert(pos < (ARR_LEN(irp->graphs)));
void set_irp_irg(int pos, ir_graph *irg) {
assert(irp && irg);
assert(pos < (ARR_LEN(irp->graphs)));