codeview.c: register all filenames

This essentially reverts 6503051dcc since
that workaround is no longer needed thanks to support for multiple source
files

Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
Jim Kukunas 2016-05-16 16:15:45 -04:00 committed by H. Peter Anvin
parent f8259c662a
commit 4de0e93677

View File

@ -188,6 +188,8 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
struct linepair *li;
struct source_file *file;
file = register_file(filename);
s = find_section(segto);
if (s == NULL)
return;
@ -195,8 +197,6 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
if ((s->flags & IMAGE_SCN_MEM_EXECUTE) == 0)
return;
file = register_file(filename);
li = saa_wstruct(file->lines);
li->file_offset = cv8_state.text_offset;
li->linenumber = linenumber;