diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:19:06 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 17:19:06 -0800 |
commit | 4753d33b404f07e749f648c57ae61e3984d40029 (patch) | |
tree | 1d0999b959a4f9fc5dbb2f816de59b82dfe0edc6 /gdb/gnu-v3-abi.c | |
parent | 9c1877ead06db18e19614a598d1e280acb97e971 (diff) | |
download | gdb-4753d33b404f07e749f648c57ae61e3984d40029.zip gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.gz gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.bz2 |
Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT.
gdb/ChangeLog:
* gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
TYPE_CODE_STRUCT.
Diffstat (limited to 'gdb/gnu-v3-abi.c')
-rw-r--r-- | gdb/gnu-v3-abi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index b960aa3..d673e77 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -288,7 +288,7 @@ gnuv3_rtti_type (struct value *value, char *atsign; /* We only have RTTI for class objects. */ - if (TYPE_CODE (values_type) != TYPE_CODE_CLASS) + if (TYPE_CODE (values_type) != TYPE_CODE_STRUCT) return NULL; /* Java doesn't have RTTI following the C++ ABI. */ @@ -406,7 +406,7 @@ gnuv3_virtual_fn_field (struct value **value_p, struct gdbarch *gdbarch; /* Some simple sanity checks. */ - if (TYPE_CODE (values_type) != TYPE_CODE_CLASS) + if (TYPE_CODE (values_type) != TYPE_CODE_STRUCT) error (_("Only classes can have virtual functions.")); /* Determine architecture. */ @@ -1101,7 +1101,7 @@ gnuv3_get_typeid (struct value *value) /* We check for lval_memory because in the "typeid (type-id)" case, the type is passed via a not_lval value object. */ - if (TYPE_CODE (type) == TYPE_CODE_CLASS + if (TYPE_CODE (type) == TYPE_CODE_STRUCT && value_lval_const (value) == lval_memory && gnuv3_dynamic_class (type)) { @@ -1277,7 +1277,6 @@ gnuv3_pass_by_reference (struct type *type) /* We're only interested in things that can have methods. */ if (TYPE_CODE (type) != TYPE_CODE_STRUCT - && TYPE_CODE (type) != TYPE_CODE_CLASS && TYPE_CODE (type) != TYPE_CODE_UNION) return 0; |