remove unused field from struct elfinfo

I noticed that one field in elfread.c:struct elfinfo is unused.
This patch removes it.

	* elfread.c (struct elfinfo) <stabindexsect>: Remove.
	(elf_locate_sections): Update.
This commit is contained in:
Tom Tromey 2013-10-17 15:41:46 +00:00
parent c4124bf18d
commit 5c4c8a5911
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2013-10-17 Tom Tromey <tromey@redhat.com>
* elfread.c (struct elfinfo) <stabindexsect>: Remove.
(elf_locate_sections): Update.
2013-10-17 Yao Qi <yao@codesourcery.com>
* Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.

View File

@ -60,7 +60,6 @@ static const struct sym_fns elf_sym_fns_lazy_psyms;
struct elfinfo
{
asection *stabsect; /* Section pointer for .stab section */
asection *stabindexsect; /* Section pointer for .stab.index section */
asection *mdebugsect; /* Section pointer for .mdebug section */
};
@ -186,10 +185,6 @@ elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip)
{
ei->stabsect = sectp;
}
else if (strcmp (sectp->name, ".stab.index") == 0)
{
ei->stabindexsect = sectp;
}
else if (strcmp (sectp->name, ".mdebug") == 0)
{
ei->mdebugsect = sectp;