Don't call set_last_source_file from xcoffread.c

xcoffread.c is no longer really using the buildsym code.  This removes
the last call, which should not be needed, and then removes the
include.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
Tom Tromey 2026-01-07 09:41:58 -07:00
parent 71776465eb
commit 2469417f58

View file

@ -31,7 +31,6 @@
#include "gdbtypes.h"
#include "symfile.h"
#include "objfiles.h"
#include "buildsym-legacy.h"
#include "complaints.h"
#include "dwarf2/sect-names.h"
#include "dwarf2/public.h"
@ -262,8 +261,6 @@ scan_xcoff_symtab (struct objfile *objfile)
union internal_auxent main_aux[5];
unsigned int ssymnum;
set_last_source_file (NULL);
abfd = objfile->obfd.get ();
sraw_symbol = XCOFF_DATA (objfile)->symtbl;