gdb: remove TYPE_NOSIGN

gdb/ChangeLog:

	* gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
	type::has_no_signedness.

Change-Id: Iaf8d1cedad195d03a4358e90f6ada77290d03bf2
This commit is contained in:
Simon Marchi 2020-09-14 11:07:58 -04:00
parent 15152a54ae
commit 20ce41238d
6 changed files with 20 additions and 17 deletions

View file

@ -210,12 +210,6 @@ enum type_instance_flag_value : unsigned
DEF_ENUM_FLAGS_TYPE (enum type_instance_flag_value, type_instance_flags);
/* * No sign for this type. In C++, "char", "signed char", and
"unsigned char" are distinct types; so we need an extra flag to
indicate the absence of a sign! */
#define TYPE_NOSIGN(t) ((t)->has_no_signedness ())
/* * A compiler may supply dwarf instrumentation
that indicates the desired endian interpretation of the variable
differs from the native endian representation. */
@ -1076,6 +1070,10 @@ struct type
this->main_type->m_flag_unsigned = is_unsigned;
}
/* No sign for this type. In C++, "char", "signed char", and
"unsigned char" are distinct types; so we need an extra flag to
indicate the absence of a sign! */
bool has_no_signedness () const
{
return this->main_type->m_flag_nosign;