Commit 4930f991 authored by Michael Beck's avatar Michael Beck
Browse files

make tpop const

[r4757]
parent 2a35ab7a
......@@ -139,7 +139,7 @@ void free_type_entities(type *tp);
* that refers to this type. */
void free_type(type *tp);
tp_op* get_type_tpop(const type *tp);
const tp_op*get_type_tpop(const type *tp);
ident* get_type_tpop_nameid(const type *tp);
const char* get_type_tpop_name(const type *tp);
tp_opcode get_type_tpop_code(const type *tp);
......
......@@ -113,7 +113,7 @@ typedef union {
/** the structure of a type */
struct type {
firm_kind kind; /**< the firm kind, must be k_type */
tp_op *type_op; /**< the type operation of the type */
const tp_op *type_op; /**< the type operation of the type */
ident *name; /**< The name of the type */
type_state state; /**< Represents the types state: layout undefined or
fixed. */
......@@ -200,7 +200,7 @@ __set_type_link(type *tp, void *l) {
tp -> link = l;
}
static INLINE tp_op*
static INLINE const tp_op*
__get_type_tpop(const type *tp) {
assert(tp && tp->kind == k_type);
return tp->type_op;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment