if (domain->is_volatile ())
gdb_printf (stream, " volatile");
- if (TYPE_RESTRICT (domain))
+ if (domain->is_restrict ())
gdb_printf (stream, (language == language_cplus
? " __restrict__"
: " restrict"));
did_print_modifier = 1;
}
- if (TYPE_RESTRICT (type))
+ if (type->is_restrict ())
{
if (did_print_modifier || need_pre_space)
gdb_printf (stream, " ");
quals |= GCC_QUALIFIER_CONST;
if (type->is_volatile ())
quals |= GCC_QUALIFIER_VOLATILE;
- if (TYPE_RESTRICT (type))
+ if (type->is_restrict ())
quals |= GCC_QUALIFIER_RESTRICT;
return context->plugin ().build_qualified_type (unqual_converted,
{
/* If we are converting a qualified type, first convert the
unqualified type and then apply the qualifiers. */
- if (type->is_const () || type->is_volatile () || TYPE_RESTRICT (type))
+ if (type->is_const () || type->is_volatile () || type->is_restrict ())
return convert_qualified (context, type);
switch (type->code ())
quals |= GCC_CP_QUALIFIER_CONST;
if (method_type->is_volatile ())
quals |= GCC_CP_QUALIFIER_VOLATILE;
- if (TYPE_RESTRICT (method_type))
+ if (method_type->is_restrict ())
quals |= GCC_CP_QUALIFIER_RESTRICT;
/* Not yet implemented. */
quals |= GCC_CP_QUALIFIER_CONST;
if (type->is_volatile ())
quals |= GCC_CP_QUALIFIER_VOLATILE;
- if (TYPE_RESTRICT (type))
+ if (type->is_restrict ())
quals |= GCC_CP_QUALIFIER_RESTRICT;
return instance->convert_qualified_base (unqual_converted, quals);
{
/* If we are converting a qualified type, first convert the
unqualified type and then apply the qualifiers. */
- if (type->is_const () || type->is_volatile () || TYPE_RESTRICT (type))
+ if (type->is_const () || type->is_volatile () || type->is_restrict ())
return compile_cplus_convert_qualified (instance, type);
switch (type->code ())
{
gdb_printf (" TYPE_ADDRESS_CLASS(%u)", TYPE_ADDRESS_CLASS (type));
}
- if (TYPE_RESTRICT (type))
- {
- gdb_puts (" TYPE_RESTRICT");
- }
+ if (type->is_restrict ())
+ gdb_puts (" TYPE_RESTRICT");
if (TYPE_ATOMIC (type))
{
gdb_puts (" TYPE_ATOMIC");
bool is_atomic : 1;
};
-#define TYPE_RESTRICT(t) (((t)->instance_flags ()).is_restrict)
#define TYPE_ATOMIC(t) (((t)->instance_flags ()).is_atomic)
/* True if this type represents either an lvalue or lvalue reference type. */
return this->m_instance_flags.harvard_aspace == HARVARD_ASPACE_DATA;
}
+ /* Return if this type is restrict. */
+ bool is_restrict () const
+ {
+ return this->m_instance_flags.is_restrict;
+ }
+
/* Get the bounds bounds of this type. The type must be a range type. */
range_bounds *bounds () const
{