This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Support the .inst directive for MachO and COFF targets
ClosedPublic

Authored by mstorsjo on Jul 27 2018, 2:06 PM.

Details

Summary

Contrary to ELF, we don't add any markers that distinguish data generated with .long from normal instructions, so the .inst directive only adds compatibility with assembly that uses it.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Jul 27 2018, 2:06 PM
efriedma added inline comments.Jul 27 2018, 4:27 PM
lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
47 ↗(On Diff #157763)

This comment doesn't make any sense: we don't use this codepath on targets with mapping symbols.

mstorsjo added inline comments.Jul 27 2018, 9:41 PM
lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
47 ↗(On Diff #157763)

Oh, indeed, I had meant to keep it for the endianness part.

mstorsjo updated this revision to Diff 157836.Jul 27 2018, 9:42 PM

Removed the part about data mapping symbols from the comment.

Also, this change goes on top of D49929.

compnerd accepted this revision.Jul 30 2018, 1:10 PM
This revision is now accepted and ready to land.Jul 30 2018, 1:10 PM
This revision was automatically updated to reflect the committed changes.