aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-01-08 21:02:45 +0000
committerDoug Evans <dje@google.com>2012-01-08 21:02:45 +0000
commit4d72c0bc3e5ec0919142311d5521a356d318bf20 (patch)
tree45ee38a8b0b720af5eee07b79106c478b833fe38 /gdb/dwarf2read.c
parentde64cffdf8df81f522d582d6a596803b351168df (diff)
downloadgdb-4d72c0bc3e5ec0919142311d5521a356d318bf20.zip
gdb-4d72c0bc3e5ec0919142311d5521a356d318bf20.tar.gz
gdb-4d72c0bc3e5ec0919142311d5521a356d318bf20.tar.bz2
* gdbtypes.h (struct cplus_struct_type): Delete member
nfn_fields_total. All uses removed.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index de9e5f8..71cae89 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7408,7 +7408,6 @@ dwarf2_attach_fn_fields_to_type (struct field_info *fip, struct type *type,
struct dwarf2_cu *cu)
{
struct fnfieldlist *flp;
- int total_length = 0;
int i;
if (cu->language == language_ada)
@@ -7430,12 +7429,9 @@ dwarf2_attach_fn_fields_to_type (struct field_info *fip, struct type *type,
TYPE_ALLOC (type, sizeof (struct fn_field) * flp->length);
for (k = flp->length; (k--, nfp); nfp = nfp->next)
fn_flp->fn_fields[k] = nfp->fnfield;
-
- total_length += flp->length;
}
TYPE_NFN_FIELDS (type) = fip->nfnfields;
- TYPE_NFN_FIELDS_TOTAL (type) = total_length;
}
/* Returns non-zero if NAME is the name of a vtable member in CU's