#define get_SymConst_ptrinfo get_SymConst_name
#define set_SymConst_ptrinfo set_SymConst_name
#define type_tag symconst_type_tag
-#define size symconst_size
+#define size symconst_type_size
+#define symconst_size symconst_type_size
#define linkage_ptr_info symconst_addr_name
#define get_nodes_Block(X) get_nodes_block(X)
/* -*- c -*- */
+
/*
* Project: libFIRM
* File name: ir/external/read.c
ftype = xtype -> f_tp;
sym.type_p = ftype;
- alloc = new_Alloc(get_store(), new_SymConst(sym, symconst_size), ftype,
+ alloc = new_Alloc(get_store(), new_SymConst(sym, symconst_type_size), ftype,
heap_alloc);
set_store(new_Proj(alloc, mode_M, 0));
eff -> firmnode = new_Proj(alloc, mode_P, 2);
\f
/*
* $Log$
- * Revision 1.23 2005/11/18 09:46:50 beck
- * removed depency of bool type and stdbool.h (not C89)
+ * Revision 1.24 2006/05/29 13:34:49 beck
+ * renamed symconst_size to symconst_type_size
*
* Revision 1.22 2005/08/16 10:18:35 beck
* create_abstraction() now returns an error code if the file could not
atp = get_Alloc_type(alloc);
tp = NULL;
- if (get_irn_op(size) == op_SymConst && get_SymConst_kind(size) == symconst_size) {
+ if (get_irn_op(size) == op_SymConst && get_SymConst_kind(size) == symconst_type_size) {
/* if the size is a type size and the types matched */
assert(atp == get_SymConst_type(size));
tp = atp;
/* There is only one block in main, it contains the allocation and the calls. */
/* Allocate the defined object and generate the type information. */
symconst_symbol sym = { class_prima };
- obj_size = new_SymConst(sym, symconst_size);
+ obj_size = new_SymConst(sym, symconst_type_size);
obj_o = new_Alloc(get_store(), obj_size, class_prima, heap_alloc);
set_store(new_Proj(obj_o, mode_M, 0)); /* make the changed memory visible */
obj_o = new_Proj(obj_o, mode_P, 2); /* remember the pointer to the object */
/* There is only one block in main, it contains the allocation and the calls. */
/* Allocate the defined object and generate the type information. */
symconst_symbol sym = {class_prima};
- obj_size = new_SymConst(sym, symconst_size);
+ obj_size = new_SymConst(sym, symconst_type_size);
obj_o = new_Alloc(get_store(), obj_size, class_prima, heap_alloc);
set_store(new_Proj(obj_o, mode_M, 0)); /* make the changed memory visible */
obj_o = new_Proj(obj_o, mode_P, 2); /* remember the pointer to the object */
/* Generate the two constants. A SymConst can not be constant evaluated. */
sym.type_p = new_type_class(new_id_from_str("SomeClass"));
a = new_Const (mode_Is, new_tarval_from_long (0, mode_Is));
- b = new_SymConst (sym, symconst_size);
+ b = new_SymConst (sym, symconst_type_size);
/* Generate the Conv with Bad as block */
a = new_Conv(b, mode_Ls);