summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-10-21 11:21:41 +0200
committerMatthias Braun <matze@braunis.de>2013-11-29 15:39:28 +0100
commit7c642309907d9d19b232a708fc583051d4debd9d (patch)
tree2cd34b60b7e21f6bd681d3517822222e1039182f /ir/common
parenta658875d580fbeec83c3fd7e0df592f9e8886e37 (diff)
rename get_irn_deps to get_irn_n_deps
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/irtools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/common/irtools.c b/ir/common/irtools.c
index 0c9ef4f..489c52d 100644
--- a/ir/common/irtools.c
+++ b/ir/common/irtools.c
@@ -137,7 +137,7 @@ ir_node *irn_copy_into_irg(const ir_node *node, ir_graph *irg)
copy_node_attr(irg, node, res);
/* duplicate dependency edges */
- for (int i = 0, n_deps = get_irn_deps(node); i < n_deps; ++i) {
+ for (int i = 0, n_deps = get_irn_n_deps(node); i < n_deps; ++i) {
ir_node *dep = get_irn_dep(node, i);
add_irn_dep(res, dep);
}
@@ -170,7 +170,7 @@ void irn_rewire_inputs(ir_node *node)
set_irn_n(new_node, i, new_in);
}
- for (int i = 0, n_deps = get_irn_deps(new_node); i < n_deps; ++i) {
+ for (int i = 0, n_deps = get_irn_n_deps(new_node); i < n_deps; ++i) {
ir_node *dep = get_irn_dep(node, i);
ir_node *new_dep = get_new_node(dep);
set_irn_dep(new_node, i, new_dep);