From d2903a39187b53403349dbdc920edc1c4f3b9579 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 8 Jun 2004 15:17:25 +0000 Subject: [PATCH] get_Cond_defaultProj() function added [r3033] --- ir/ir/irnode.c | 6 ++++++ ir/ir/irnode.h | 1 + 2 files changed, 7 insertions(+) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 5f1bc3602..cbe6ebb40 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -780,6 +780,12 @@ set_Cond_kind (ir_node *node, cond_kind kind) { node->attr.c.kind = kind; } +long +get_Cond_defaultProj (ir_node *node) { + assert (node->op == op_Cond); + return node->attr.c.default_proj; +} + ir_node * get_Return_mem (ir_node *node) { assert (node->op == op_Return); diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index c615ad4ae..2865c7dab 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -327,6 +327,7 @@ ir_node *get_Cond_selector (ir_node *node); void set_Cond_selector (ir_node *node, ir_node *selector); cond_kind get_Cond_kind (ir_node *node); void set_Cond_kind (ir_node *node, cond_kind kind); +long get_Cond_defaultProj (ir_node *node); /** * Projection numbers for conditions. -- 2.20.1