This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Thu, 12 Apr 2012 19:04:11 -0700 (PDT)
- Subject: [commit] dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
Hi.
A minor cleanup prior to submitting the Fission patch.
2012-04-12 Doug Evans <dje@google.com>
* dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
All callers updated.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.631
diff -u -p -r1.631 dwarf2read.c
--- dwarf2read.c 12 Apr 2012 02:09:14 -0000 1.631
+++ dwarf2read.c 13 Apr 2012 01:30:00 -0000
@@ -3351,10 +3351,10 @@ create_all_type_units (struct objfile *o
}
/* Lookup a signature based type.
- Returns NULL if SIG is not present in the table. */
+ Returns NULL if signature SIG is not present in the table. */
static struct signatured_type *
-lookup_signatured_type (struct objfile *objfile, ULONGEST sig)
+lookup_signatured_type (ULONGEST sig)
{
struct signatured_type find_entry, *entry;
@@ -10336,7 +10336,7 @@ read_attribute_value (struct attribute *
for later lookup.
NOTE: This is NULL if the type wasn't found. */
DW_SIGNATURED_TYPE (attr) =
- lookup_signatured_type (cu->objfile, read_8_bytes (abfd, info_ptr));
+ lookup_signatured_type (read_8_bytes (abfd, info_ptr));
info_ptr += 8;
break;
case DW_FORM_ref_udata: