This is an archive of the discontinued LLVM Phabricator instance.

Always emit symbol table when dwarf section exists in COFF
ClosedPublic

Authored by HaohaiWen on Apr 25 2023, 11:20 PM.

Diff Detail

Event Timeline

HaohaiWen created this revision.Apr 25 2023, 11:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 11:20 PM
HaohaiWen requested review of this revision.Apr 25 2023, 11:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 11:20 PM
HaohaiWen retitled this revision from Always emit symbol tables when dwarf section exists in COFF to Always emit symbol table when dwarf section exists in COFF.
HaohaiWen edited the summary of this revision. (Show Details)

This also fixes check prefix NO which never worked in symtab.test

I disagree with this statement; the check worked (otherwise we would have seen test failures?), but I agree that the test was pointless before the fix in this patch.

lld/test/COFF/symtab.test
151

Shouldn't we leave out the .debug_info section? Otherwise it kinda makes the existing tests, that test /debug:symtab and /debug:dwarf, kinda not actually test the options themselves?

HaohaiWen edited the summary of this revision. (Show Details)Apr 26 2023, 5:58 AM

This also fixes check prefix NO which never worked in symtab.test

I disagree with this statement; the check worked (otherwise we would have seen test failures?), but I agree that the test was pointless before the fix in this patch.

Thanks for pointing it out.

HaohaiWen marked an inline comment as done.Apr 26 2023, 6:18 AM
mstorsjo accepted this revision.Apr 26 2023, 1:19 PM

I think this sounds reasonable, so LGTM.

This revision is now accepted and ready to land.Apr 26 2023, 1:19 PM