Commit 54076e63 authored by Michael Beck's avatar Michael Beck
Browse files

- constify

[r25780]
parent bcf1aede
......@@ -185,7 +185,7 @@ ir_mode *new_ir_vector_mode(const char *name, ir_mode_sort sort, int bit_size, u
* @return
* true if the thing is a mode, else false
*/
int is_mode(void *thing);
int is_mode(const void *thing);
/* ********** Access methods to read mode information *********** */
......
......@@ -78,7 +78,7 @@ typedef enum {
} ir_typeinfo_state;
void set_irg_typeinfo_state(ir_graph *irg, ir_typeinfo_state s);
ir_typeinfo_state get_irg_typeinfo_state(ir_graph *irg);
ir_typeinfo_state get_irg_typeinfo_state(const ir_graph *irg);
/** Returns accumulated type information state information.
*
......@@ -99,7 +99,7 @@ void set_irp_typeinfo_inconsistent(void);
* ir_typeinfo_consistent or ir_typeinfo_inconsistent. They
* assume current_ir_graph set properly.
*/
ir_type *get_irn_typeinfo_type(ir_node *n);
ir_type *get_irn_typeinfo_type(const ir_node *n);
void set_irn_typeinfo_type(ir_node *n, ir_type *tp);
#endif
......@@ -114,7 +114,7 @@ void set_irg_typeinfo_state(ir_graph *irg, ir_typeinfo_state s) {
irp->typeinfo_state = ir_typeinfo_inconsistent;
}
ir_typeinfo_state get_irg_typeinfo_state(ir_graph *irg) {
ir_typeinfo_state get_irg_typeinfo_state(const ir_graph *irg) {
assert(is_ir_graph(irg));
return irg->typeinfo_state;
}
......@@ -145,7 +145,7 @@ void set_irp_typeinfo_inconsistent(void) {
* ir_typeinfo_consistent or ir_typeinfo_inconsistent. They
* assume current_ir_graph set properly.
*/
ir_type *get_irn_typeinfo_type(ir_node *n) {
ir_type *get_irn_typeinfo_type(const ir_node *n) {
ir_type *res = initial_type;
pmap_entry *entry;
assert(get_irg_typeinfo_state(get_irn_irg(n)) == ir_typeinfo_consistent ||
......
......@@ -483,7 +483,7 @@ tarval *get_mode_NAN(ir_mode *mode) {
return get_tarval_nan(mode);
}
int is_mode(void *thing) {
int is_mode(const void *thing) {
if (get_kind(thing) == k_ir_mode)
return 1;
else
......
Markdown is supported
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