Mark some new functions as pure

This commit is contained in:
Bill Currie 2019-06-27 21:37:48 +09:00
parent a5ee58cebb
commit 8caf2eb584
2 changed files with 2 additions and 2 deletions

View file

@ -117,7 +117,7 @@ const char *optype_str (op_type_e type) __attribute__((const));
operand_t *def_operand (struct def_s *def, struct type_s *type); operand_t *def_operand (struct def_s *def, struct type_s *type);
operand_t *value_operand (struct ex_value_s *value); operand_t *value_operand (struct ex_value_s *value);
int tempop_overlap (tempop_t *t1, tempop_t *t2); int tempop_overlap (tempop_t *t1, tempop_t *t2) __attribute__((pure));
operand_t *temp_operand (struct type_s *type); operand_t *temp_operand (struct type_s *type);
int tempop_visit_all (tempop_t *tempop, int overlap, int tempop_visit_all (tempop_t *tempop, int overlap,
int (*visit) (tempop_t *, void *), void *data); int (*visit) (tempop_t *, void *), void *data);

View file

@ -163,7 +163,7 @@ int is_field (const type_t *type) __attribute__((pure));
int is_struct (const type_t *type) __attribute__((pure)); int is_struct (const type_t *type) __attribute__((pure));
int is_array (const type_t *type) __attribute__((pure)); int is_array (const type_t *type) __attribute__((pure));
int is_func (const type_t *type) __attribute__((pure)); int is_func (const type_t *type) __attribute__((pure));
int type_compatible (const type_t *dst, const type_t *src); int type_compatible (const type_t *dst, const type_t *src) __attribute__((pure));
int type_assignable (const type_t *dst, const type_t *src); int type_assignable (const type_t *dst, const type_t *src);
int type_size (const type_t *type) __attribute__((pure)); int type_size (const type_t *type) __attribute__((pure));