From: nasm-bot f. J. K. <jam...@li...> - 2016-05-17 19:09:17
|
Commit-ID: 4de0e936779a094b685c7ef959274687cf838fbe Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=4de0e936779a094b685c7ef959274687cf838fbe Author: Jim Kukunas <jam...@li...> AuthorDate: Mon, 16 May 2016 16:15:45 -0400 Committer: H. Peter Anvin <hp...@li...> CommitDate: Tue, 17 May 2016 11:35:44 -0700 codeview.c: register all filenames This essentially reverts 6503051dcc360172c49311d586f2b9cf4ab2ea81 since that workaround is no longer needed thanks to support for multiple source files Signed-off-by: Jim Kukunas <jam...@li...> Signed-off-by: H. Peter Anvin <hp...@li...> --- output/codeview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/codeview.c b/output/codeview.c index d490fa4..9bafa16 100644 --- a/output/codeview.c +++ b/output/codeview.c @@ -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; |