This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Make assert messages uniform [NFC]
ClosedPublic

Authored by mgrang on Jun 27 2017, 5:34 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

mgrang created this revision.Jun 27 2017, 5:34 PM

I'd be pretty tempted to remove them entirely. Those are the only 3 LLVM supports at all and assertions for (extremely) hypothetical future additions seem to be taking it a bit far.

mgrang updated this revision to Diff 104488.Jun 28 2017, 12:16 PM

Changed assert messages to be more generic so that we do not need to keep them changing with every new target.

I'd be pretty tempted to remove them entirely. Those are the only 3 LLVM supports at all and assertions for (extremely) hypothetical future additions seem to be taking it a bit far.

I think these messages are useful when adding new targets. The only thing is we would need to keep changing the messages to include every new target added. So I have made the messages more generic.

t.p.northover accepted this revision.Jun 28 2017, 12:20 PM

Fair enough. It's certainly a reasonable change.

This revision is now accepted and ready to land.Jun 28 2017, 12:20 PM
This revision was automatically updated to reflect the committed changes.