This is an archive of the discontinued LLVM Phabricator instance.

[AARCH64] Fix a comment to match the code. NFC.
ClosedPublic

Authored by mstorsjo on May 8 2017, 3:50 AM.

Details

Summary

For the ELF case, the default/preferred form is the generic one, not the short one as used for Apple - fix the comment to say so. Currently it is a copy-paste typo.

Make the comments on the darwin default a bit more verbose.

Use enum names instead of literal 0/1 to further increase readability and reduce fragility.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.May 8 2017, 3:50 AM
kristof.beyls accepted this revision.May 10 2017, 1:57 AM
kristof.beyls added a subscriber: kristof.beyls.

LGTM, even if you don't implement the nitpicky suggestions I made.

lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
35 ↗(On Diff #98148)

you could add " when targeting Darwin" to the comment.

71 ↗(On Diff #98148)

You could add " when targeting ELF" to the comment.

This revision is now accepted and ready to land.May 10 2017, 1:57 AM
This revision was automatically updated to reflect the committed changes.