This is an archive of the discontinued LLVM Phabricator instance.

[X86] Move the function getOrCreateBoundaryAlignFragment
ClosedPublic

Authored by skan on Feb 28 2020, 6:50 AM.

Details

Summary

MCObjectStreamer is more suitable to create fragments than X86AsmBackend, for example, the function getOrCreateDataFragment is defined in MCObjectStreamer.

Diff Detail

Event Timeline

skan created this revision.Feb 28 2020, 6:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2020, 6:50 AM
reames accepted this revision.Feb 28 2020, 1:50 PM

LGTM.

I'm hoping we can simply some of this further such that we don't need the conditional reuse pattern, but this is strictly better than what we have currently. Land it and we'll iterate.

This revision is now accepted and ready to land.Feb 28 2020, 1:50 PM
This revision was automatically updated to reflect the committed changes.