This is an archive of the discontinued LLVM Phabricator instance.

Fix merge-by-content to not merge atoms with different custom sections
ClosedPublic

Authored by kledzik on Oct 1 2014, 6:38 PM.

Details

Summary

The mergeByContent attribute on atoms triggers the symbol table to coalesce atoms with the exact same content. The problem is that atoms can also have a required custom section. The coalescing should never change the custom section of an atom.

The fix is to only consider to atoms to have the same content if their sectionChoice() and customSectionName() attributes match.

Diff Detail

Event Timeline

kledzik updated this revision to Diff 14305.Oct 1 2014, 6:38 PM
kledzik retitled this revision from to Fix merge-by-content to not merge atoms with different custom sections.
kledzik updated this object.
kledzik edited the test plan for this revision. (Show Details)
kledzik added a subscriber: Unknown Object (MLST).
ruiu accepted this revision.Oct 2 2014, 9:36 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 2 2014, 9:36 AM
kledzik closed this revision.Oct 2 2014, 10:43 AM

committed in r218893