Added 'exc_t' data type and enum;
authorFlorian Liekweg <liekweg@ipd.info.uni-karlsruhe.de>
Tue, 16 Apr 2002 13:52:46 +0000 (13:52 +0000)
committerFlorian Liekweg <liekweg@ipd.info.uni-karlsruhe.de>
Tue, 16 Apr 2002 13:52:46 +0000 (13:52 +0000)
Added 'exc' field to ir_node.attr.block --flo

[r351]

ir/ir/irnode.c
ir/ir/irnode_t.h

index d8404dc..ed768e5 100644 (file)
@@ -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);
index d7dcd5e..ad080da 100644 (file)
@@ -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 */