This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Give an error on invalid -march values
ClosedPublic

Authored by john.brawn on May 8 2015, 4:32 AM.

Details

Summary

D9599 will make llvm::Triple::getARMCPUForArch return nullptr for invalid -march values, instead of silently translating it to arm7tdmi. Use this to give an error message, which is consistent with how gcc behaves.

Diff Detail

Repository
rL LLVM

Event Timeline

john.brawn updated this revision to Diff 25305.May 8 2015, 4:32 AM
john.brawn retitled this revision from to [ARM] Give an error on invalid -march values.
john.brawn updated this object.
john.brawn edited the test plan for this revision. (Show Details)
john.brawn added a reviewer: rengolin.
john.brawn set the repository for this revision to rL LLVM.
john.brawn added a subscriber: Unknown Object (MLST).
rengolin accepted this revision.May 8 2015, 4:37 AM
rengolin edited edge metadata.

LGTM, Thanks!

This revision is now accepted and ready to land.May 8 2015, 4:37 AM

Maybe better if you join this one with D9599, so that we don't have a third different behaviour between the two commits.

This revision was automatically updated to reflect the committed changes.