TYPE_CODE_CAPABILITY is used for intcap_t and uintcap_t, whereas
capability-sized pointers use TYPE_CODE_PTR with the TYPE_CAPABILITY
flag. This avoids trying to indirect scalar capability values in
some places. Cosmetically it stops the output of the '(intcap_t)'
prefixes in front of capability values.
/* Return true if this is a pointer or reference type. */
bool is_pointer_or_reference () const
{
- return this->code () == TYPE_CODE_PTR
- || this->code () == TYPE_CODE_CAPABILITY || TYPE_IS_REFERENCE (this);
+ return this->code () == TYPE_CODE_PTR || TYPE_IS_REFERENCE (this);
}
/* * Type that is a pointer to this type.