This is an archive of the discontinued LLVM Phabricator instance.

[COFF] Fix assembly output of comdat sections without an attached symbol
ClosedPublic

Authored by mstorsjo on Jul 22 2018, 1:35 PM.

Details

Summary

Since SVN r335286, the .xdata sections are produced without an attached symbol, which requires using a different syntax when printing assembly output.

Instead of the usual syntax of '.section <name>,"dr",discard,<symbol>', use '.section <name>,"dr"' + '.linkonce discard' (which is what GCC uses for all assembly output).

This fixes PR38254.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Jul 22 2018, 1:35 PM
rnk accepted this revision.Jul 23 2018, 10:00 AM

lgtm

This revision is now accepted and ready to land.Jul 23 2018, 10:00 AM
This revision was automatically updated to reflect the committed changes.