From df86565b31bf12aab6fdceade49169bc6f378b13 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 21 Sep 2022 11:05:21 -0400 Subject: gdb: remove TYPE_LENGTH Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb --- gdb/objfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/objfiles.c') diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 31c27e9..09aba0f 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1354,7 +1354,7 @@ objfile_int_type (struct objfile *of, int size_in_bytes, bool unsigned_p) int_type = (unsigned_p \ ? objfile_type (of)->builtin_unsigned_ ## F \ : objfile_type (of)->builtin_ ## F); \ - if (int_type != NULL && TYPE_LENGTH (int_type) == size_in_bytes) \ + if (int_type != NULL && int_type->length () == size_in_bytes) \ return int_type TRY_TYPE (char); -- cgit v1.1