From: Florian Liekweg Date: Tue, 16 Apr 2002 13:52:46 +0000 (+0000) Subject: Added 'exc_t' data type and enum; X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a123f90253336b58d64ab25763ceb665193332f9;p=libfirm Added 'exc_t' data type and enum; Added 'exc' field to ir_node.attr.block --flo [r351] --- diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index d8404dcae..ed768e5c2 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -494,6 +494,16 @@ set_Block_graph_arr (ir_node *node, int pos, ir_node *value) { node->attr.block.graph_arr[pos+1] = value; } +void set_Block_exc (ir_node *block, exc_t exc) +{ + block->attr.block.exc = exc; +} + +exc_t get_Block_exc (ir_node *block) +{ + return (block->attr.block.exc); +} + inline int get_End_n_keepalives(ir_node *end) { assert (end->op == op_End); diff --git a/ir/ir/irnode_t.h b/ir/ir/irnode_t.h index d7dcd5e22..ad080dae0 100644 --- a/ir/ir/irnode_t.h +++ b/ir/ir/irnode_t.h @@ -17,6 +17,8 @@ # include "common_t.h" # include "irdom_t.h" /* For size of struct dom_info. */ +# include "exc.h" + /** ir node attributes **/ /* Block attributes */ @@ -29,6 +31,7 @@ typedef struct { @@@ Eventually overlay with graph_arr as only valid in different phases. Eventually inline the whole datastructure. */ + exc_t exc; /* role of this block for exception handling */ } block_attr; /* Cond attributes */