Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4930f991
Commit
4930f991
authored
Dec 23, 2004
by
Michael Beck
Browse files
make tpop const
[r4757]
parent
2a35ab7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/tr/type.h
View file @
4930f991
...
...
@@ -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
);
...
...
ir/tr/type_t.h
View file @
4930f991
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment